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">
73 <a href="{% url 'youtube_preview' audiobook.id %}">
74 {% trans "Preview YouTube metadata" %}
77 <form method="post" action="{% url 'youtube_publish' audiobook.id %}">
79 <input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
82 {% if audiobook.youtube_id %}
83 <form method="post" action="{% url 'youtube_update' audiobook.id %}">
85 <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube metadata" %}">
99 <div class="col-xl-4">
100 <div class="card mt-4">
101 <div class="card-header">
102 <h2>{% trans "MP3 file" %}</h2>
104 <div class="card-body">
105 {% if audiobook.mp3_file %}
106 <p><a href="{% url 'download' audiobook.id 'mp3' %}">{% trans "Download MP3 file." %}</a></p>
107 {% if audiobook.mp3_published %}
108 <p>{% trans "Published:" %} {{ audiobook.mp3_published }}</a></p>
109 {% if audiobook.get_mp3_published_tags.tags %}
110 {% tags_table audiobook.get_mp3_published_tags.tags %}
113 <p>{% trans "Not published yet." %}</p>
116 <p>{% trans "MP3 file hasn't been generated yet." %}</p>
122 <div class="col-xl-4">
123 <div class="card mt-4">
124 <div class="card-header">
125 <h2>{% trans "Ogg Vorbis file" %}</h2>
127 <div class="card-body">
128 {% if audiobook.ogg_file %}
129 <p><a href="{% url 'download' audiobook.id 'ogg' %}">{% trans "Download Ogg Vorbis file." %}</a></p>
130 {% if audiobook.ogg_published %}
131 <p>{% trans "Published:" %} {{ audiobook.ogg_published }}</a></p>
132 {% if audiobook.get_ogg_published_tags.tags %}
133 {% tags_table audiobook.get_ogg_published_tags.tags %}
136 <p>{% trans "Not published yet." %}</p>
139 <p>{% trans "Ogg Vorbis file hasn't been generated yet." %}</p>
145 <div class="col-xl-4">
146 <div class="card mt-4">
147 <div class="card-header">
148 <h2>{% trans "YouTube" %}</h2>
150 <div class="card-body">
151 {% if audiobook.youtube_id %}
152 {% if audiobook.youtube_id %}
154 <a href="https://youtu.be/{{ audiobook.youtube_id }}" target="_blank">{% trans "See on YouTube" %}</a>
157 {% if audiobook.youtube_published %}
158 <p>{% trans "Published:" %} {{ audiobook.youtube_published }}</a></p>
159 {% if audiobook.get_youtube_published_tags.tags %}
160 {% tags_table audiobook.get_youtube_published_tags.tags %}
163 <p>{% trans "Not published yet." %}</p>
166 <p>{% trans "YouTube file hasn't been generated yet." %}</p>
172 <div class="col-xl-6">
173 <div class="card mt-4">
174 <div class="card-header">
175 <h2>Plik źródłowy</h2>
177 <div class="card-body">
178 <p>Last modified: {{ audiobook.modified }}</p>
179 <p>Plik źródłowy: <a href='{% url "download" audiobook.id %}'>{{ path }}</a>
180 (sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
182 {% multiple_tags_table tags %}
184 <form method="post" action="{% url 'remove_to_archive' audiobook.id %}"
185 onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
187 <input class="btn btn-danger" type="submit" value="{% trans "Remove to archive" %}" />
194 <div class="col-xl-6">
195 <div class="card mt-4 mb-4">
196 <div class="card-header">
197 <h2>{% trans "Update tags" %}</h2>
199 <div class="card-body">
201 <form method='post' action='.'>
203 {% bootstrap_form form %}
204 <input class="btn btn-primary" type="submit" value='{% trans "Commit" %}' />