X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0d32008f4ab55669ec5eb13ed1af3c2741092ef5..7720832e5e083dda48bc99b9f07b377b9d11c2cb:/src/redakcja/templates/registration/head_login.html diff --git a/src/redakcja/templates/registration/head_login.html b/src/redakcja/templates/registration/head_login.html index 15ef5630..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 "cas_ng_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 %}