remvoe the wrong publish button,
[redakcja.git] / redakcja / templates / registration / head_login.html
index f051213..c82611b 100644 (file)
@@ -2,7 +2,12 @@
 
 {% if user.is_authenticated %}
 <span class="user_name">{{ user.username }}</span> |
-<a href='{% url logout %}'>{% trans "Log Out" %}</a>
+
+{% 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 %}
 {% ifnotequal login_url request.path %}