Disable login_required.
[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='{% url download audiobook.id %}'>{{ 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     <table class='tags'>
46         {% tags_table audiobook.new_publish_tags 0 %}
47         <tr><th></th><td>
48
49             <form method="post" action="{% url publish audiobook.id %}">
50                 {% csrf_token %}
51                 <input type="submit" value="{% trans "Publish" %}" />
52             </form>
53
54             {% if not audiobook.mp3_published or not audiobook.ogg_published %}
55             <form method="post" action="{% url convert audiobook.id %}">
56                 {% csrf_token %}
57                 <input type="submit" value="{% trans "Convert without publishing" %}" />
58             </form>
59             {% endif %}
60
61         </td></tr>
62     </table>
63 {% endif %}
64
65 <hr/>
66 {% if audiobook.mp3_file %}
67     <h2>{% trans "MP3 file" %}</h2>
68     <p><a href="{% url download audiobook.id 'mp3' %}">{% trans "Download MP3 file." %}</a></p>
69     {% if audiobook.mp3_published %}
70         <p>{% trans "Published:" %} {{ audiobook.mp3_published }}</a></p>
71         {% if audiobook.mp3_published_tags.tags %}
72             {% tags_table audiobook.mp3_published_tags.tags %}
73         {% endif %}
74     {% else %}
75         <p>{% trans "Not published yet." %}</p>
76     {% endif %}
77 {% else %}
78     <p>{% trans "MP3 file hasn't been generated yet." %}</p>
79 {% endif %}
80
81 <hr/>
82 {% if audiobook.ogg_file %}
83     <h2>{% trans "Ogg Vorbis file" %}</h2>
84     <p><a href="{% url download audiobook.id 'ogg' %}">{% trans "Download Ogg Vorbis file." %}</a></p>
85     {% if audiobook.ogg_published %}
86         <p>{% trans "Published:" %} {{ audiobook.ogg_published }}</a></p>
87         {% if audiobook.ogg_published_tags.tags %}
88             {% tags_table audiobook.ogg_published_tags.tags %}
89         {% endif %}
90     {% else %}
91         <p>{% trans "Not published yet." %}</p>
92     {% endif %}
93 {% else %}
94     <p>{% trans "Ogg Vorbis file hasn't been generated yet." %}</p>
95 {% endif %}
96
97
98
99
100 <hr />
101
102
103
104
105 <h2>{% trans "Update tags" %}</h2>
106
107 Last modified: {{ audiobook.modified }}
108
109 {% multiple_tags_table tags %}
110
111
112
113 <form method='post' action='.'>
114     {% csrf_token %}
115     <table>
116         {{ form.as_table }}
117         <td></td><td><input type="submit" value='{% trans "Commit" %}' /></td></td>
118     </table>
119 </form>
120
121
122
123 <hr />
124
125
126
127 <form method="post" action="{% url remove_to_archive audiobook.id %}"
128     onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
129     {% csrf_token %}
130     <input type="submit" value="{% trans "Remove to archive" %}" />
131 </form>
132
133
134
135 {% endblock %}