Commit 7de25ba3499b66dc1ac99a4cbcc75dbde9c4374d
1 parent
6f94b2d2
Exists in
master
and in
39 other branches
Updated and fixed browserid logins
Conflicts: src/templates/base.html
Showing
4 changed files
with
13 additions
and
6 deletions
Show diff stats
requirements.txt
| @@ -18,7 +18,7 @@ django-hitcounter==0.1.1 | @@ -18,7 +18,7 @@ django-hitcounter==0.1.1 | ||
| 18 | Pillow==2.5.1 | 18 | Pillow==2.5.1 |
| 19 | django-i18n-model==0.0.7 | 19 | django-i18n-model==0.0.7 |
| 20 | django-tastypie==0.11.0 | 20 | django-tastypie==0.11.0 |
| 21 | -django-browserid==0.9 | 21 | +django-browserid==0.10.1 |
| 22 | 22 | ||
| 23 | gunicorn==19.1.0 | 23 | gunicorn==19.1.0 |
| 24 | eventlet==0.15.0 | 24 | eventlet==0.15.0 |
src/accounts/urls.py
| @@ -12,7 +12,7 @@ urlpatterns = patterns('', | @@ -12,7 +12,7 @@ urlpatterns = patterns('', | ||
| 12 | url(r'^change-password/$', | 12 | url(r'^change-password/$', |
| 13 | ChangeXMPPPasswordView.as_view(), name='change_password'), | 13 | ChangeXMPPPasswordView.as_view(), name='change_password'), |
| 14 | 14 | ||
| 15 | - url(r'^logout/?$', 'accounts.views.logoutColab'), | 15 | + url(r'^logout/?$', 'accounts.views.logoutColab', name='logout'), |
| 16 | 16 | ||
| 17 | url(r'^(?P<username>[\w@+.-]+)/?$', | 17 | url(r'^(?P<username>[\w@+.-]+)/?$', |
| 18 | UserProfileDetailView.as_view(), name='user_profile'), | 18 | UserProfileDetailView.as_view(), name='user_profile'), |
src/colab/custom_settings.py
| @@ -203,7 +203,6 @@ TEMPLATE_CONTEXT_PROCESSORS = ( | @@ -203,7 +203,6 @@ TEMPLATE_CONTEXT_PROCESSORS = ( | ||
| 203 | 'django.core.context_processors.tz', | 203 | 'django.core.context_processors.tz', |
| 204 | 'django.contrib.messages.context_processors.messages', | 204 | 'django.contrib.messages.context_processors.messages', |
| 205 | 'django.core.context_processors.request', | 205 | 'django.core.context_processors.request', |
| 206 | - 'django_browserid.context_processors.browserid', | ||
| 207 | 'django_mobile.context_processors.is_mobile', | 206 | 'django_mobile.context_processors.is_mobile', |
| 208 | 'super_archives.context_processors.mailarchive', | 207 | 'super_archives.context_processors.mailarchive', |
| 209 | 'home.context_processors.robots', | 208 | 'home.context_processors.robots', |
src/templates/base.html
| 1 | <!DOCTYPE html> | 1 | <!DOCTYPE html> |
| 2 | -{% load i18n browserid conversejs gravatar proxy %} | ||
| 3 | - | ||
| 4 | -{% is_trac_enable as is_trac %} | 2 | +{% load i18n static browserid conversejs gravatar proxy %} |
| 5 | 3 | ||
| 6 | <html> | 4 | <html> |
| 7 | <head> | 5 | <head> |
| @@ -197,6 +195,16 @@ | @@ -197,6 +195,16 @@ | ||
| 197 | {% include "tz/set_utc_offset.html" %} | 195 | {% include "tz/set_utc_offset.html" %} |
| 198 | {% browserid_js %} | 196 | {% browserid_js %} |
| 199 | 197 | ||
| 198 | + {% if not is_mobile %} | ||
| 199 | + {% conversejs_chatpanel %} | ||
| 200 | + {% conversejs_initialize %} | ||
| 201 | + {% endif %} | ||
| 202 | + | ||
| 203 | + {% include "tz/set_utc_offset.html" %} | ||
| 204 | + <script src="https://login.persona.org/include.js"></script> | ||
| 205 | + <script src="{% static 'browserid/api.js' %}"></script> | ||
| 206 | + <script src="{% static 'browserid/browserid.js' %}"></script> | ||
| 207 | + | ||
| 200 | {% block footer_js %}{% endblock %} | 208 | {% block footer_js %}{% endblock %} |
| 201 | </body> | 209 | </body> |
| 202 | </html> | 210 | </html> |