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 %}
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.mp3_tags.tags %}
28 <p>Status: <b>{{ audiobook.get_mp3_status_display }}</b></p>
31 {% if audiobook.ogg_status %}
35 {% tags_table audiobook.ogg_tags.tags %}
37 <p>Status: <b>{{ audiobook.get_ogg_status_display }}</b></p>
43 {% tags_table audiobook.new_publish_tags 0 %}
46 {% if user_can_publish %}
47 <form method="post" action="{% url 'publish' audiobook.id %}">
49 <input class="btn btn-primary" type="submit" value="{% trans "Publish" %}" />
52 <a class="btn btn-primary" href="{% url 'apiclient_oauth' %}">Podłącz się</a>
55 {% if not audiobook.mp3_published or not audiobook.ogg_published %}
56 <form class="mt-3" method="post" action="{% url 'convert' audiobook.id %}">
58 <input class="btn btn-secondary" type="submit" value="{% trans "Convert without publishing" %}" />
72 <div class="col-xl-6">
73 <div class="card mt-4">
74 <div class="card-header">
75 <h2>{% trans "MP3 file" %}</h2>
77 <div class="card-body">
78 {% if audiobook.mp3_file %}
79 <p><a href="{% url 'download' audiobook.id 'mp3' %}">{% trans "Download MP3 file." %}</a></p>
80 {% if audiobook.mp3_published %}
81 <p>{% trans "Published:" %} {{ audiobook.mp3_published }}</a></p>
82 {% if audiobook.mp3_published_tags.tags %}
83 {% tags_table audiobook.mp3_published_tags.tags %}
86 <p>{% trans "Not published yet." %}</p>
89 <p>{% trans "MP3 file hasn't been generated yet." %}</p>
95 <div class="col-xl-6">
96 <div class="card mt-4">
97 <div class="card-header">
98 <h2>{% trans "Ogg Vorbis file" %}</h2>
100 <div class="card-body">
101 {% if audiobook.ogg_file %}
102 <p><a href="{% url 'download' audiobook.id 'ogg' %}">{% trans "Download Ogg Vorbis file." %}</a></p>
103 {% if audiobook.ogg_published %}
104 <p>{% trans "Published:" %} {{ audiobook.ogg_published }}</a></p>
105 {% if audiobook.ogg_published_tags.tags %}
106 {% tags_table audiobook.ogg_published_tags.tags %}
109 <p>{% trans "Not published yet." %}</p>
112 <p>{% trans "Ogg Vorbis file hasn't been generated yet." %}</p>
118 <div class="col-xl-6">
119 <div class="card mt-4">
120 <div class="card-header">
121 <h2>Plik źródłowy</h2>
123 <div class="card-body">
124 <p>Last modified: {{ audiobook.modified }}</p>
125 <p>Plik źródłowy: <a href='{% url "download" audiobook.id %}'>{{ path }}</a>
126 (sha1: <tt>{{ audiobook.source_sha1 }}</tt>).
128 {% multiple_tags_table tags %}
130 <form method="post" action="{% url 'remove_to_archive' audiobook.id %}"
131 onsubmit='return confirm("{% trans "Are you sure you want to move this audiobook to archive?" %}")'>
133 <input class="btn btn-danger" type="submit" value="{% trans "Remove to archive" %}" />
140 <div class="col-xl-6">
141 <div class="card mt-4 mb-4">
142 <div class="card-header">
143 <h2>{% trans "Update tags" %}</h2>
145 <div class="card-body">
147 <form method='post' action='.'>
149 {% bootstrap_form form %}
150 <input class="btn btn-primary" type="submit" value='{% trans "Commit" %}' />