X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..92d4704c889df1405c4d2c34e1fce5e5c1ced680:/src/redakcja/templates/registration/head_login.html?ds=inline 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 %}