use directories and allow filetypes other than FLAC
[audio.git] / apps / archive / templates / archive / file_managed.html
1 {% extends "archive/base.html" %}
2 {% load i18n %}
3 {% load tags %}
4
5 {% block content %}
6
7 <p>Plik źródłowy: <a href='{{ audiobook.source_file.url }}'>{{ path }}</a>
8 (sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
9 </p>
10
11 <h2>{% trans "Publishing" %}</h2>
12
13 {% if audiobook.mp3_status or audiobook.ogg_status %}
14
15 <h2>{% trans "Publishing pending" %}</h2>
16
17 <form method="post" action="{% url cancel_publishing audiobook.id %}">
18     {% csrf_token %}
19     <input type="submit" value="{% trans "Cancel publishing" %}" />
20 </form>
21
22
23 {% if audiobook.mp3_status %}
24     <hr/>
25     <h2>MP3</h2>
26
27     {% tags_table audiobook.mp3_tags.tags %}
28
29     <p>Status: <b>{{ audiobook.get_mp3_status_display }}</b></p>
30 {% endif %}
31
32 {% if audiobook.ogg_status %}
33     <hr/>
34     <h2>Ogg Vorbis</h2>
35
36     {% tags_table audiobook.ogg_tags.tags %}
37
38     <p>Status: <b>{{ audiobook.get_ogg_status_display }}</b></p>
39 {% endif %}
40
41
42
43
44 {% else %}
45     <form method="post" action="{% url publish audiobook.id %}">
46     <table class='tags'>
47         {% tags_table audiobook.new_publish_tags 0 %}
48
49         {% csrf_token %}
50         <tr><th></th><td><input type="submit" value="{% trans "Publish" %}" /></td></tr>
51     </table>
52     </form>
53 {% endif %}
54
55 <hr/>
56 {% if audiobook.mp3_published %}
57     <h2>Published MP3</h2>
58     <a href="{{ audiobook.mp3_file.url }}">{{ audiobook.mp3_published }}</a>
59     {% tags_table audiobook.mp3_published_tags.tags %}
60 {% else %}<p>MP3 file hasn't been published yet.</p>
61 {% endif %}
62
63 <hr/>
64 {% if audiobook.ogg_published %}
65     <h2>Published Ogg Vorbis</h2>
66     <a href="{{ audiobook.ogg_file.url }}">{{ audiobook.ogg_published }}</a>
67     {% tags_table audiobook.ogg_published_tags.tags %}
68 {% else %}Ogg Vorbis file hasn't been published yet.
69 {% endif %}
70
71
72
73
74 <hr />
75
76
77
78
79 <h2>{% trans "Update tags" %}</h2>
80
81 Last modified: {{ audiobook.modified }}
82
83 {% multiple_tags_table tags %}
84
85
86
87 <form method='post' action='.'>
88     {% csrf_token %}
89     <table>
90         {{ form.as_table }}
91         <td></td><td><input type="submit" value='{% trans "Commit" %}' /></td></td>
92     </table>
93 </form>
94
95
96
97
98 {% endblock %}