1 {% extends "archive/base.html" %}
7 {% block menu-active-audiobooks %}active{% endblock %}
13 {% for alert in alerts %}
14 <div class="mt-4 alert alert-warning">{{ alert }}</div>
19 <div class="row mt-4">
20 <div class="col-xl-12">
21 <div class="card mt-4">
22 <div class="card-header">
23 <h2>{% if audiobook.slug %}<a href="{% url 'book' audiobook.slug %}" %}">{% endif %}{{ audiobook.title }}{% if audiobook.slug %}</a>{% endif %}</h2>
25 <div class="card-body">
26 <form method='post' action='.'>
28 {% bootstrap_form form layout="horizontal" %}
29 <input class="btn btn-primary" type="submit" value='{% trans "Commit" %}' />
47 <div class="col-xl-4">
48 <div class="card mt-4">
49 <div class="card-header">
52 {% if audiobook.youtube_status %}
53 <span class="badge badge-pill badge-primary">{{ audiobook.get_youtube_status_display }}</span>
57 <div class="card-body">
58 <img src="{% url 'youtube_thumbnail' audiobook.id %}" style="width:100%">
59 <strong>{{ youtube_title }}</strong><br><br>
60 {{ youtube_description|linebreaksbr }}
64 {% if audiobook.is_youtube_publishable %}
67 <a href="{% url 'youtube_preview' audiobook.id %}">
68 {% trans "Preview YouTube metadata" %}
75 {% if audiobook.youtube_id %}
76 <form method="post" action="{% url 'youtube_update_thumbnail' audiobook.id %}">
78 <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube thumbnail" %}">
82 <form method="post" action="{% url 'youtube_update' audiobook.id %}">
84 <input class="btn btn-secondary" type="submit" value="{% trans "Update YouTube metadata" %}">
87 <form method="post" action="{% url 'youtube_publish' audiobook.id %}">
89 <input class="btn btn-primary" type="submit" value="{% trans "Publish on YouTube" %}" />
94 <div class="card-footer">
95 {% if audiobook.youtube_id %}
97 <a href="https://youtu.be/{{ audiobook.youtube_id }}" target="_blank" title="{% trans "See on YouTube" %}">
98 <img src="https://i.ytimg.com/vi/{{ audiobook.youtube_id }}/hq720.jpg" style="width: 100%">
102 <p>{% trans "Published:" %} {{ audiobook.youtube_published }}</a></p>
108 <div class="col-xl-4">
110 <div class="card mt-4">
111 <div class="card-header">
112 <h3>Metadane dla MP3, Ogg</h3>
114 <div class="card-body">
115 <table class='table'>
116 tagi, które zostałyby zapisane do pliku, gdyby go teraz opublikować
117 {% tags_table audiobook.new_publish_tags 0 %}
125 <div class="col-xl-5">
126 {% if audiobook.mp3_status or audiobook.ogg_status or audiobook.youtube_status %}
127 <h2>{% trans "Publishing pending" %}</h2>
128 <form method="post" action="{% url 'cancel_publishing' audiobook.id %}">
130 <input class='btn btn-danger' type="submit" value="{% trans "Cancel publishing" %}" />
135 <div class="card mt-4">
136 <div class="card-header">
139 <div class="card-body">
140 {% if audiobook.mp3_status %}
144 <p>Status: <b>{{ audiobook.get_mp3_status_display }}</b></p>
147 {% if audiobook.ogg_status %}
151 <p>Status: <b>{{ audiobook.get_ogg_status_display }}</b></p>
155 {% if audiobook.mp3_file %}
156 <p><a href="{% url 'download' audiobook.id 'mp3' %}">{% trans "Download MP3 file." %}</a></p>
157 {% if audiobook.mp3_published %}
158 <p>{% trans "Published:" %} {{ audiobook.mp3_published }}</a></p>
160 <p>{% trans "Not published yet." %}</p>
163 <p>{% trans "MP3 file hasn't been generated yet." %}</p>
166 {% if audiobook.ogg_file %}
167 <p><a href="{% url 'download' audiobook.id 'ogg' %}">{% trans "Download Ogg Vorbis file." %}</a></p>
168 {% if audiobook.ogg_published %}
169 <p>{% trans "Published:" %} {{ audiobook.ogg_published }}</a></p>
171 <p>{% trans "Not published yet." %}</p>
174 <p>{% trans "Ogg Vorbis file hasn't been generated yet." %}</p>
177 {% if user_can_publish %}
178 <form method="post" action="{% url 'publish' audiobook.id %}">
180 <input class="btn btn-primary" type="submit" value="{% trans "Publish" %}" />
183 <a class="btn btn-primary" href="{% url 'apiclient_oauth' %}">Podłącz się</a>
186 {% if not audiobook.mp3_published or not audiobook.ogg_published %}
187 <form class="mt-3" method="post" action="{% url 'convert' audiobook.id %}">
189 <input class="btn btn-secondary" type="submit" value="{% trans "Convert without publishing" %}" />
205 <div class="card mt-4 mb-4">
206 <div class="card-header">
207 <h2>Plik źródłowy</h2>
208 (informacje fizycznie ze źródłowego pliku)
210 <div class="card-body">
213 <div class="col-lg-8">
215 <p>Last modified: {{ audiobook.modified }}</p>
216 <p>Plik źródłowy: <a href='{{ audiobook.source_file.url }}'>{{ path }}</a>
217 (sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
219 {% multiple_tags_table tags %}
222 <div class="col-xl-4">
224 <div class="card-body">
225 <form method="post" action="{% url 'remove_to_archive' audiobook.id %}"
226 onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
230 Jeśli ten plik nie jest potrzebny, możesz usunąć informacje o nim z systemu,
231 zachowując go tylko w postaci samego źródłowego pliku.
234 <input class="btn btn-danger" type="submit" value="{% trans "Remove to archive" %}" />