X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..5b1643ef60b2e2c6e045ecbf0042237bf446d721:/src/redakcja/templates/registration/head_login.html?ds=sidebyside diff --git a/src/redakcja/templates/registration/head_login.html b/src/redakcja/templates/registration/head_login.html index 2a8fd3bd..4af3db92 100644 --- a/src/redakcja/templates/registration/head_login.html +++ b/src/redakcja/templates/registration/head_login.html @@ -1,16 +1,22 @@ {% load i18n %} +{% load gravatar %} {% if user.is_authenticated %} -{{ user.username }} | - -{% if user.is_staff %} - {% trans "Admin" %} | -{% endif %} - -{% trans "Log Out" %} +
{% else %} -{% url "login" as login_url %} -{% ifnotequal login_url request.path %} - {% trans "Log In" %} -{% endifnotequal %} + {% url "cas_ng_login" as login_url %} + {% if login_url != request.path %} + {% trans "Log In" %} + {% endif %} {% endif %}