From a6db1ef5159ff618a9d1a78ff14fd705a106c130 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 12 Mar 2012 13:43:40 +0100 Subject: [PATCH] nicer social auth --- apps/ajaxable/templatetags/__init__.py | 0 apps/ajaxable/templatetags/ajaxable_tags.py | 7 +++++ requirements.txt | 1 + wolnelektury/static/img/auth/facebook.png | Bin 0 -> 1105 bytes wolnelektury/static/img/auth/google-icon.png | Bin 15517 -> 0 bytes .../img/auth/openid-large.png?1237615666 | Bin 4871 -> 0 bytes wolnelektury/static/img/auth/twitter.png | Bin 0 -> 1188 bytes wolnelektury/static/js/dialogs.js | 2 +- wolnelektury/templates/auth/login.html | 19 ++++++++------ .../templates/auth/login_register.html | 9 ++----- wolnelektury/templates/openid/login.html | 24 ++++++++++++++++++ .../templates/socialaccount/base.html | 1 + .../socialaccount/snippets/provider_list.html | 21 ++++++++++----- 13 files changed, 62 insertions(+), 22 deletions(-) create mode 100644 apps/ajaxable/templatetags/__init__.py create mode 100644 apps/ajaxable/templatetags/ajaxable_tags.py create mode 100644 wolnelektury/static/img/auth/facebook.png delete mode 100644 wolnelektury/static/img/auth/google-icon.png delete mode 100644 wolnelektury/static/img/auth/openid-large.png?1237615666 create mode 100644 wolnelektury/static/img/auth/twitter.png create mode 100644 wolnelektury/templates/openid/login.html create mode 100644 wolnelektury/templates/socialaccount/base.html diff --git a/apps/ajaxable/templatetags/__init__.py b/apps/ajaxable/templatetags/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/apps/ajaxable/templatetags/ajaxable_tags.py b/apps/ajaxable/templatetags/ajaxable_tags.py new file mode 100644 index 000000000..2f9a8c4c8 --- /dev/null +++ b/apps/ajaxable/templatetags/ajaxable_tags.py @@ -0,0 +1,7 @@ +from django import template +from ajaxable.utils import placeholdized +register = template.Library() + +@register.filter +def placeholdize(form): + return placeholdized(form) diff --git a/requirements.txt b/requirements.txt index ecb07cca2..bf8bb438a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,7 @@ django-allauth python-memcached piwik +python-fb # Feedparser Feedparser>=4.1 diff --git a/wolnelektury/static/img/auth/facebook.png b/wolnelektury/static/img/auth/facebook.png new file mode 100644 index 0000000000000000000000000000000000000000..f9b6e71494072be50b14bc734788450d03efd708 GIT binary patch literal 1105 zcmeAS@N?(olHy`uVBq!ia0vp^8X(NU1|)m_?Z^dEY)RhkE)4%b@U_I1CZGssfk$L9 zkoEv$x0Bg+Ai=T%$8;bK*3YoGV9E~$2IeYH7srr@!*6HAX3K<19Irn=^X|>*C6jYD zd9E?k4T=_A+R>3DE$GPdQCVX}`~mKdRvz|EO$)Az>hBTR^V#Z=YqaQX?rKHe%;e6L z%_sMreKY5H_s!Vd*2bQ<=XxrC+iPfdF@)8qf0xGG&R{QaV^2y z^JiPv)K$*yU3>STW%ktluh%9%Na5$0;;pytwM&lu-%SU9ZH+!*dr@nGgu_f$PsR5~ zs+L^+C^#`9dd|Q2rGD)8vqUEUEnKytugc)$!j+6tf?TaKN(szMUmWwFd*0G#>fMXC zR$us9#bWj=VkJXV=)9OY&o1|e&9n?WvdSp5sPOYeh05n&i}(CF^l87O>w(YA`*!R( z_ul-y+pM+{n-u{CvghW_T5c6=RgkeZYFU_W|D5d7nmc=hck5o_7J7Q1wtPaDPo9ZS7C2yV7~UZ}H*n_J6!~&Nv>GTA4X(dz`iNImxdF zf#JKO=N|D+fix9+K`Yc-Frv|_4w`YU(ezjx0Q z-EAir3eDyY_Px?9vT(+cAT_2w!_M~#6D=>ZoN?-BlxMbEBe!jpjN}8B%4(OxCc!#S zBIa06yisM}u_kodv&YY8trfA{8{_Nayz11oZ*dWkYz?at=bPC_ACow|gga%eQLN@M zwR=S;mzr6(cE(yOa_HRtDi*8nkfIaFZ}-k;Rlz*w92e_X`%E9r`X3>(eCuZQ8CidJ zO;p|1xJdKIm8hfdS-0G>`?*IpFVpbB&%H-}b0jV;FXyr< z=ik=T`Sm%yE}I1Ep53_nTIIg`)V}M|vx-~dFNZU&Ho5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luYHQdK6q;oxu&~uAuw1 zv|kp10?gZ>Q{=vcU0GMW&|fl^ax-6kmBDcNS-Oq|;DXl48qASakMdC*|M@8kw+yP) zTb(cOO?qQ@=zPBr%+xl#Ecz0VRsw;ma@49ohEb?5Km1!x*pt&j8W`=TEo?>;q zyJ1LZ1J7W+->po{C-{_+vN~o%W_lh;gE4h>-^QL^ou!2{*cpcc{<0@q+-N2T@%rwM z4j;hFEPT{NAq<^f#f{Emwyy2-l)|^yrXeBnBGBxl;$gpg-H2d?Pe&>==D+MPrv;hP z?UC;oaV|(w)ZT_nlGbP2gr+!_xT7Gfa@8pbfsVY)Uh>kmwY@zW`89Uo6p5=u zaEDSN0PAG1JleS2yeUd4e5WBH-NE-C2Lcp)w~V%i2?6-KhhI1-^wHWFxXJHfCvM zW;`kofKDkP3id&A8 z^hpyBtw_L><&zi1th$~+AxSq`gYnJ<%um3Brq$yKCJ*j+#2uO+X)VG->?CG8uX%bc z+oRi^F;;oeP59p*>p!017gbm%#$ia}toU`E1l$VP`-2mJT=D2V>h}&fx$4)Ugi~9P faNd7M6F>Fa{#wt(JM_1LlPngbu_Xd$=$ZIGwl7TD diff --git a/wolnelektury/static/img/auth/twitter.png b/wolnelektury/static/img/auth/twitter.png new file mode 100644 index 0000000000000000000000000000000000000000..d2a55029d0e9583c9a6026a02a5cb3d81890e895 GIT binary patch literal 1188 zcmV;V1Y7%wP)K~z}7?U&DMTvZguKj+>% zZ!$ldOiW@DQ^ZmW_#dopvUZNhUM%-n}l~n>3So^JWyG3OTzO=HAaezrN>;-0`jBT9~>f)P3+i zcpu#V7C{RFT82Gh{*|}a0|JL9Y+H(kVdw+ET5t~A{|5qFmIp_FBUl$X^x-@= zXR!_?k(UBz%DnaqULsk~JoiR?4uqOdxy{2RX44!SD)f+@#r{t zP0-z7X5jgzr5@m^y#lNN0Ubl$4Y#1gqP;}N?YF;^4=dbE!ja-`n8i58UX=3RN|>Aj^>heSaefwW^{L9a%BKPWN%_+AW3auXJt}lVPtu6$z?nM0000* ' + gettext("Loading") + '

', target: $('.target', $window)[0], overlay: 60, diff --git a/wolnelektury/templates/auth/login.html b/wolnelektury/templates/auth/login.html index 553e873a0..ba5385a13 100644 --- a/wolnelektury/templates/auth/login.html +++ b/wolnelektury/templates/auth/login.html @@ -1,14 +1,17 @@ -{% extends "ajaxable/form.html" %} {% load i18n %} +

{{ title }}

-{% block extra %} +
+
    +
    + {{ form.as_ul }} +
  1. {% trans "Forgot your password?" %}
  2. +
  3. +
+
-

{% trans "or join accounts:" %}

+

{% trans "or merge accounts:" %}

-
    {% include "socialaccount/snippets/provider_list.html" %} -
- -{% endblock %} - diff --git a/wolnelektury/templates/auth/login_register.html b/wolnelektury/templates/auth/login_register.html index 394902a2b..f879d4674 100755 --- a/wolnelektury/templates/auth/login_register.html +++ b/wolnelektury/templates/auth/login_register.html @@ -1,14 +1,9 @@ -{% extends "ajaxable/form.html" %} +{% extends "auth/login.html" %} {% load i18n %} {% block extra %} -

{% trans "or join accounts:" %}

- -
    -{% include "socialaccount/snippets/provider_list.html" %} -
- +{{ block.super }}

{% trans "or register" %}:

diff --git a/wolnelektury/templates/openid/login.html b/wolnelektury/templates/openid/login.html new file mode 100644 index 000000000..afe7fe8f4 --- /dev/null +++ b/wolnelektury/templates/openid/login.html @@ -0,0 +1,24 @@ +{% extends "base.html" %} +{% load i18n %} +{% load ajaxable_tags %} + + +{% block titleextra %}{% trans "OpenID Sign In" %}{% endblock %} + + +{% block body %} + +

{% trans 'OpenID Sign In' %}

+ + +
+
    + {% csrf_token %} + {% with form|placeholdize as f %} + {{ f.as_ul }} + {% endwith %} +
  • +
+
+ +{% endblock %} diff --git a/wolnelektury/templates/socialaccount/base.html b/wolnelektury/templates/socialaccount/base.html new file mode 100644 index 000000000..94d9808cc --- /dev/null +++ b/wolnelektury/templates/socialaccount/base.html @@ -0,0 +1 @@ +{% extends "base.html" %} diff --git a/wolnelektury/templates/socialaccount/snippets/provider_list.html b/wolnelektury/templates/socialaccount/snippets/provider_list.html index 99e30a5c1..45b740c25 100644 --- a/wolnelektury/templates/socialaccount/snippets/provider_list.html +++ b/wolnelektury/templates/socialaccount/snippets/provider_list.html @@ -1,21 +1,30 @@ {% load allauth_tags %} +{% load catalogue_tags %} +{% if allauth.facebook_enabled %} +{% fbconnect %} +{% endif %} + +
    {% if allauth.openid_enabled %}
  • Google
  • {% endif %} +{% if allauth.facebook_enabled %} +
  • +{% endif %} {% if allauth.twitter_enabled %}
  • {% endif %} -{% if allauth.facebook_enabled %} -
  • -{% endif %} {% if allauth.openid_enabled %} + - +
  • + OpenID
  • {% endif %} +
-- 2.20.1