- <table>
- {% for t, v in audiobook.publishing_tags.items %}
- <tr><th>{{ t }}</th><td>{{ v }}</td></tr>
- {% endfor %}
+<h2>{% trans "Publishing pending" %}</h2>
+
+<form method="post" action="{% url cancel_publishing audiobook.id %}">
+ {% csrf_token %}
+ <input type="submit" value="{% trans "Cancel publishing" %}" />
+</form>
+
+
+{% if audiobook.mp3_status %}
+ <hr/>
+ <h2>MP3</h2>
+
+ {% tags_table audiobook.mp3_tags.tags %}
+
+ <p>Status: <b>{{ audiobook.get_mp3_status_display }}</b></p>
+{% endif %}
+
+{% if audiobook.ogg_status %}
+ <hr/>
+ <h2>Ogg Vorbis</h2>
+
+ {% tags_table audiobook.ogg_tags.tags %}
+
+ <p>Status: <b>{{ audiobook.get_ogg_status_display }}</b></p>
+{% endif %}
+
+
+
+
+{% else %}
+ <table class='tags'>
+ {% tags_table audiobook.new_publish_tags 0 %}
+ <tr><th></th><td>
+
+ <form method="post" action="{% url publish audiobook.id %}">
+ {% csrf_token %}
+ <input type="submit" value="{% trans "Publish" %}" />
+ </form>
+
+ {% if not audiobook.mp3_published or not audiobook.ogg_published %}
+ <form method="post" action="{% url convert audiobook.id %}">
+ {% csrf_token %}
+ <input type="submit" value="{% trans "Convert without publishing" %}" />
+ </form>
+ {% endif %}
+
+ </td></tr>