X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f73ecfb6b870b18ed88303ff71a06da55001274b..d05a1d784f2f0dbad6839c672cae8226d1b0fa9d:/redakcja/templates/registration/head_login.html diff --git a/redakcja/templates/registration/head_login.html b/redakcja/templates/registration/head_login.html index 64bd3e7e..c82611b4 100644 --- a/redakcja/templates/registration/head_login.html +++ b/redakcja/templates/registration/head_login.html @@ -2,6 +2,11 @@ {% if user.is_authenticated %} <span class="user_name">{{ user.username }}</span> | + +{% if user.is_staff %} + <a href="{% url admin:index %}">{% trans "Admin" %}</a> | +{% endif %} + <a href='{% url logout %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a> {% else %} {% url login as login_url %}