1521b42feb2b5c50cfbe447f529bb12ef6650c92
[audio.git] / src / archive / templates / archive / audiobook_list.html
1 {% extends "archive/list.html" %}
2 {% load i18n %}
3 {% load pagination_tags %}
4
5
6 {% block menu-active-audiobooks %}active{% endblock %}
7
8
9 {% block file-list-title %}
10   {% trans "Audiobooks" %}
11 {% endblock %}
12
13
14 {% block file-list-info %}
15 {% endblock %}
16
17 {% block file-list-wrapper %}
18   {% autopaginate object_list 50 %}
19   {{ block.super }}
20   {% paginate %}
21 {% endblock %}
22
23
24 {% block file-list %}
25   <thead>
26     <tr>
27       <th>Slug</th>
28       <th>{% trans "Title" %}</th>
29       <th>{% trans "YouTube volume" %}</th>
30       <th>MP3</th>
31       <th>Ogg</th>
32       <th>YouTube</th>
33     </tr>
34   </thead>
35   {% for audiobook in object_list %}
36     <tr>
37       <td>
38         {% if audiobook.slug %}
39           <a href="{% url "book" audiobook.slug %}">{{ audiobook.slug }}</a>
40         {% endif %}
41         <td>
42           <a href='{% url "file" audiobook.id %}'>{{ audiobook }}</a>
43         </td>
44         <td>
45           {{ audiobook.youtube_volume }}
46         </td>
47         <td>
48           {% if audiobook.mp3_status %}
49             <span class="badge badge-info">
50               MP3:
51               {{ audiobook.get_mp3_status_display }}
52             </span>
53           {% endif %}
54         </td>
55         <td>
56           {% if audiobooks.ogg_status_display %}
57             <span class="badge badge-info">
58               Ogg:
59               {{ audiobook.get_ogg_status_display }}
60             </span>
61           {% endif %}
62         </td>
63         <td>
64           {% if audiobooks.youtube_status %}
65             <span class="badge badge-info">
66               YT:
67               {{ audiobook.get_youtube_status_display }}
68             </span>
69           {% endif %}
70         </td>
71     </tr>
72   {% endfor %}
73 {% endblock %}