Reorganize code.
[audio.git] / src / archive / templates / archive / base.html
diff --git a/src/archive/templates/archive/base.html b/src/archive/templates/archive/base.html
new file mode 100644 (file)
index 0000000..8ec34e9
--- /dev/null
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+{% load i18n %}
+
+{% block repo-zones-nav %}
+    <a {% if division = "new" %}class="active" {% endif %}href="{% url 'list_new' %}">{% trans "New" %}</a>
+    <a {% if division = "unpublished" %}class="active" {% endif %}href="{% url 'list_unpublished' %}">{% trans "Unpublished" %}</a>
+    <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>
+    {% 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 %}