X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f938afb8ab4cb091d12e0ef0311eaea14b774798..896fad710142a7c82b849ffe9f0d492d6a99c5ca:/redakcja/templates/registration/head_login.html?ds=sidebyside diff --git a/redakcja/templates/registration/head_login.html b/redakcja/templates/registration/head_login.html index f051213a..2a8fd3bd 100644 --- a/redakcja/templates/registration/head_login.html +++ b/redakcja/templates/registration/head_login.html @@ -2,9 +2,14 @@ {% if user.is_authenticated %} {{ user.username }} | -{% trans "Log Out" %} + +{% if user.is_staff %} + {% trans "Admin" %} | +{% endif %} + +{% trans "Log Out" %} {% else %} -{% url login as login_url %} +{% url "login" as login_url %} {% ifnotequal login_url request.path %} {% trans "Log In" %} {% endifnotequal %}