Disable login_required.
[audio.git] / apps / archive / templates / archive / base.html
index 5650ac7..575cf8e 100644 (file)
@@ -7,6 +7,19 @@
     <a {% if division = "publishing" %}class="active" {% endif %}href="{% url list_publishing %}">{% trans "Publishing" %}</a>
     <a {% if division = "published" %}class="active" {% endif %}href="{% url list_published %}">{% trans "Published" %}</a>
     <a {% if division = "unmanaged" %}class="active" {% endif %}href="{% url list_unmanaged %}">{% trans "Archive" %}</a>
-    <a href="{% url logout %}" style='float: right;'>{% trans "Logout" %}</a>
+    {% if user.is_staff %}
+        <a href='{% url admin:archive_project_changelist %}'>{% trans "Projects" %}</a>
+    {% endif %}
+    {% if user.is_authenticated %}
+        <a href="{% url logout %}" style='float: right;'>{% trans "Logout" %}</a>
+    {% else %}
+        <a href="{% url login %}" style='float: right;'>{% trans "Login" %}</a>
+    {% endif %}
+    {% if user.is_staff %}
+        <a href='{% url admin:index %}' style='float: right;'>{% trans "Administration" %}</a>
+    {% endif %}
+    {% if user.is_authenticated %}
+        <span style='float: right;'>{{ user }}</span>
+    {% endif %}
     <div class='clr' ></div>
 {% endblock %}