Reorganize code.
[audio.git] / src / archive / templates / archive / list_unpublished.html
diff --git a/src/archive/templates/archive/list_unpublished.html b/src/archive/templates/archive/list_unpublished.html
new file mode 100755 (executable)
index 0000000..b901ef0
--- /dev/null
@@ -0,0 +1,32 @@
+{% extends "archive/list.html" %}
+{% load i18n %}
+
+
+{% block file-list-title %}
+    {% trans "Unpublished audiobooks" %}
+{% endblock %}
+
+
+{% block file-list-info %}
+{% endblock %}
+
+
+{% block file-list %}
+    {% for file in objects %}
+        <li>
+            <a href='{% url "file" file.id %}'>{{ file }}</a>
+
+            {% if file.mp3_published %}
+                <span class="list-published-tag" title="{{ file.mp3_published }}">MP3</span>
+            {% else %}{% if file.mp3_status %}
+                <span class="list-publishing-tag" title="{{ file.get_mp3_status_display }}">MP3</span>
+            {% endif %}{% endif %}
+
+            {% if file.ogg_published %}
+                <span class="list-published-tag" title="{{ file.ogg_published }}">Ogg</span>
+            {% else %}{% if file.ogg_status %}
+                <span class="list-publishing-tag" title="{{ file.get_ogg_status_display }}">Ogg</span>
+            {% endif %}{% endif %}
+        </li>
+    {% endfor %}
+{% endblock %}