Update Django, add search.
[audio.git] / src / archive / templates / archive / audiobook_list.html
1 {% extends "archive/list.html" %}
2 {% load i18n %}
3 {% load pagination_tags %}
4 {% load tags %}
5
6
7 {% block menu-active-audiobooks %}active{% endblock %}
8
9
10 {% block file-list-title %}
11   {% trans "Audiobooks" %}
12 {% endblock %}
13
14
15 {% block file-list-info %}
16   <form>
17     <div class="input-group">
18       <input class="form-control" name="s" value="{{ request.GET.s }}">
19       <div class="input-group-append">
20         <button class="btn btn-primary">Szukaj</button>
21       </div>
22     </div>
23   </form>
24 {% endblock %}
25
26 {% block file-list-wrapper %}
27   {% autopaginate object_list 50 %}
28   {{ block.super }}
29   {% paginate %}
30 {% endblock %}
31
32
33 {% block file-list %}
34   <thead>
35     <tr>
36       <th>Slug</th>
37       <th>{% trans "Title" %}</th>
38       <th>{% trans "YouTube volume" %}</th>
39       <th>MP3</th>
40       <th>Ogg</th>
41       <th>YouTube</th>
42     </tr>
43   </thead>
44   {% for audiobook in object_list %}
45     <tr>
46       <td>
47         {% if audiobook.slug %}
48           <a href="{% url "book" audiobook.slug %}">{{ audiobook.slug }}</a>
49         {% endif %}
50         <td>
51           <a href='{% url "file" audiobook.id %}'>{{ audiobook }}</a>
52         </td>
53         <td>
54           {{ audiobook.youtube_volume }}
55         </td>
56         <td>
57           {% status audiobook "mp3" %}
58         </td>
59         <td>
60           {% status audiobook "ogg" %}
61         </td>
62         <td>
63           {% status audiobook "youtube" %}
64         </td>
65     </tr>
66   {% endfor %}
67 {% endblock %}