1 {% extends "archive/base.html" %}
6 {% block menu-active-audiobooks %}active{% endblock %}
10 <div class="card mt-4">
11 <div class="card-header">
12 <h2>{{ object_list.0.book.title }}</h2>
14 <div class="card-body">
18 <th>{% trans "Index" %}</th>
19 <th>{% trans "Title" %}</th>
22 <th colspan="5">YouTube</th>
26 {% with volumes=object_list.0.youtube_volume_count %}
27 {% for audiobook in object_list %}
29 <td>{{ audiobook.index }}</td>
31 <a href="{% url 'file' audiobook.id %}">
32 {% if audiobook.part_name %}
33 {{ audiobook.part_name }}
35 <em class="text-warning" title="ddd">
41 <td>{% status audiobook "mp3" %}</td>
42 <td>{% status audiobook "ogg" %}</td>
43 {% ifchanged audiobook.youtube_volume_index %}
45 {{ audiobook.youtube_volume_index }}/{{ volumes }}
48 <form method="POST" action="{% url 'book_youtube_volume' audiobook.id %}">
50 <input name='volume' value="{{ audiobook.youtube_volume }}" class="form-control">
54 {{ audiobook.total|duration }}
57 {{ audiobook.duration|duration }}
60 {% status audiobook "youtube" %}
67 <span class="text-secondary">
68 <form method="POST" action="{% url 'book_youtube_volume' audiobook.id %}">
70 <input name='volume' value="{{ audiobook.youtube_volume }}" class="form-control">
76 <td class="text-secondary">
77 {{ audiobook.duration|duration }}
87 <form method="post" action="{% url 'youtube_book_publish' view.kwargs.slug %}">
89 <button class="btn btn-primary">
90 Opublikuj wszystko na YouTube