Commit 6056cc27e88e7b5a62af824dfe8f1bffe64b1db7
Committed by
Sergio Oliveira
1 parent
58bce9e0
Exists in
master
and in
39 other branches
Changed logout url if browserid is disabled
Logout was set to use only browserid, so we added the option to use django default logout url instead of browserid if the latter is disabled. Signed-off-by: Carlos Oliveira <carlospecter@gmail.com> Signed-off-by: Alexandre Almeida <alexandreab@live.com>
Showing
2 changed files
with
6 additions
and
2 deletions
Show diff stats
colab/accounts/urls.py
colab/templates/base.html
... | ... | @@ -141,7 +141,11 @@ |
141 | 141 | <div> |
142 | 142 | <a class="btn btn-info pull-left" href="{% url 'user_profile' user.username %}">{% trans "My Profile" %}</a> |
143 | 143 | {% trans 'Logout' as logout_text %} |
144 | - {% browserid_logout text=logout_text link_class='btn btn-default pull-right' %} | |
144 | + {% if BROWSERID_ENABLED %} | |
145 | + {% browserid_logout text=logout_text link_class='btn btn-default pull-right' %} | |
146 | + {% else %} | |
147 | + <a class="btn btn-default pull-right" href="{% url 'logout' %}"> {% trans "Logout" %}</a> | |
148 | + {% endif %} | |
145 | 149 | </div> |
146 | 150 | </div> |
147 | 151 | </li> | ... | ... |