X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/0d32008f4ab55669ec5eb13ed1af3c2741092ef5..28866d0f2520b7515f3c06e9b61bcce4f44d53b1:/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 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 %}