X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0d32008f4ab55669ec5eb13ed1af3c2741092ef5..57041b345ca24bde1c6e5b24bbc888db35bd8b99:/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 15ef5630..1ae47fa9 100644 --- a/src/redakcja/templates/registration/head_login.html +++ b/src/redakcja/templates/registration/head_login.html @@ -1,16 +1,20 @@ {% load i18n %} {% 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 %}