1 {% extends "archive/base.html" %}
10 <div class="card mt-4">
11 <div class="card-header">
12 <h2>{% trans "Publishing" %}</h2>
14 <div class="card-body">
15 {% if audiobook.mp3_status or audiobook.ogg_status or audiobook.youtube_status %}
16 <h2>{% trans "Publishing pending" %}</h2>
17 <form method="post" action="{% url 'cancel_publishing' audiobook.id %}">
19 <input class='btn btn-danger' type="submit" value="{% trans "Cancel publishing" %}" />
22 {% if audiobook.mp3_status %}
26 {% tags_table audiobook.get_mp3_tags.tags %}
28 <p>Status: <b>{{ audiobook.get_mp3_status_display }}</b></p>
31 {% if audiobook.ogg_status %}
35 {% tags_table audiobook.get_ogg_tags.tags %}
37 <p>Status: <b>{{ audiobook.get_ogg_status_display }}</b></p>
40 {% if audiobook.youtube_status %}
44 <p>Status: <b>{{ audiobook.get_youtube_status_display }}</b></p>
50 {% tags_table audiobook.new_publish_tags 0 %}
54 <div class="col-md-6">
55 {% if user_can_publish %}
56 <form method="post" action="{% url 'publish' audiobook.id %}">
58 <input class="btn btn-primary" type="submit" value="{% trans "Publish" %}" />
61 <a class="btn btn-primary" href="{% url 'apiclient_oauth' %}">Podłącz się</a>
64 {% if not audiobook.mp3_published or not audiobook.ogg_published %}
65 <form class="mt-3" method="post" action="{% url 'convert' audiobook.id %}">
67 <input class="btn btn-secondary" type="submit" value="{% trans "Convert without publishing" %}" />
71 <div class="col-md-6">
72 <form method="post" action="{% url 'youtube_publish' audiobook.id %}">
74 <input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
77 <form class="mt-3" method="post" action="{% url 'youtube_convert' audiobook.id %}">
79 <input class="btn btn-secondary" type="submit" value="{% trans "Convert without publishing" %}" />
92 <div class="col-xl-4">
93 <div class="card mt-4">
94 <div class="card-header">
95 <h2>{% trans "MP3 file" %}</h2>
97 <div class="card-body">
98 {% if audiobook.mp3_file %}
99 <p><a href="{% url 'download' audiobook.id 'mp3' %}">{% trans "Download MP3 file." %}</a></p>
100 {% if audiobook.mp3_published %}
101 <p>{% trans "Published:" %} {{ audiobook.mp3_published }}</a></p>
102 {% if audiobook.get_mp3_published_tags.tags %}
103 {% tags_table audiobook.get_mp3_published_tags.tags %}
106 <p>{% trans "Not published yet." %}</p>
109 <p>{% trans "MP3 file hasn't been generated yet." %}</p>
115 <div class="col-xl-4">
116 <div class="card mt-4">
117 <div class="card-header">
118 <h2>{% trans "Ogg Vorbis file" %}</h2>
120 <div class="card-body">
121 {% if audiobook.ogg_file %}
122 <p><a href="{% url 'download' audiobook.id 'ogg' %}">{% trans "Download Ogg Vorbis file." %}</a></p>
123 {% if audiobook.ogg_published %}
124 <p>{% trans "Published:" %} {{ audiobook.ogg_published }}</a></p>
125 {% if audiobook.get_ogg_published_tags.tags %}
126 {% tags_table audiobook.get_ogg_published_tags.tags %}
129 <p>{% trans "Not published yet." %}</p>
132 <p>{% trans "Ogg Vorbis file hasn't been generated yet." %}</p>
138 <div class="col-xl-4">
139 <div class="card mt-4">
140 <div class="card-header">
141 <h2>{% trans "YouTube" %}</h2>
143 <div class="card-body">
144 {% if audiobook.youtube_file %}
145 <p><a href="{% url 'download' audiobook.id 'mkv' %}">{% trans "Download YouTube file." %}</a></p>
146 {% if audiobook.youtube_published %}
147 <p>{% trans "Published:" %} {{ audiobook.youtube_published }}</a></p>
148 {% if audiobook.get_youtube_published_tags.tags %}
149 {% tags_table audiobook.get_youtube_published_tags.tags %}
152 <p>{% trans "Not published yet." %}</p>
155 <p>{% trans "YouTube file hasn't been generated yet." %}</p>
161 <div class="col-xl-6">
162 <div class="card mt-4">
163 <div class="card-header">
164 <h2>Plik źródłowy</h2>
166 <div class="card-body">
167 <p>Last modified: {{ audiobook.modified }}</p>
168 <p>Plik źródłowy: <a href='{% url "download" audiobook.id %}'>{{ path }}</a>
169 (sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
171 {% multiple_tags_table tags %}
173 <form method="post" action="{% url 'remove_to_archive' audiobook.id %}"
174 onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
176 <input class="btn btn-danger" type="submit" value="{% trans "Remove to archive" %}" />
183 <div class="col-xl-6">
184 <div class="card mt-4 mb-4">
185 <div class="card-header">
186 <h2>{% trans "Update tags" %}</h2>
188 <div class="card-body">
190 <form method='post' action='.'>
192 {% bootstrap_form form %}
193 <input class="btn btn-primary" type="submit" value='{% trans "Commit" %}' />