Added themes.
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load catalogue_tags pagination_tags %}
3
4 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
5
6 {% block bodyid %}tagged-object-list{% endblock %}
7
8 {% block body %}
9     <h1>{% title_from_tags tags %}</h1>
10     {% breadcrumbs tags %}
11     
12     {% if shelf_is_set and not object_list %}
13     <div id="books-list">
14         <h2>Twoja półka jest pusta</h2>
15         <p>Możesz wrzucić książkę na półkę, wchodząc na stronę danej lektury i klikając na przycisk „Na półkę!”.</p>
16     </div>
17     {% else %}
18     {% autopaginate object_list 10 %}
19     <div id="books-list">
20         {% with tags|last as last_tag %}
21         {% if last_tag.has_description %}
22             <div id="description">
23                 {{ last_tag.description|safe }}
24             </div>
25             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
26         {% endif %}
27         {% endwith %}
28         {% if shelf_is_set %}
29             <a id="download-shelf">
30                 Pobierz wszystkie książki z tej półki
31             </a>
32         {% endif %}
33         <ol>
34         {% for book in object_list %}
35             <li>{{ book.short_html }}</li>
36         {% endfor %}
37         </ol>
38         {% paginate %}
39     </div>
40     <div id="tags-list">
41         <div id="categories-list">
42             {% if categories.author %}
43                 <h2>Autorzy</h2>
44                 {% tag_list categories.author tags %}
45             {% endif %}
46             {% if categories.kind %}
47                 <h2>Rodzaje</h2>
48                 {% tag_list categories.kind tags %}
49             {% endif %}
50             {% if categories.genre %}
51                 <h2>Gatunki literackie</h2>
52                 {% tag_list categories.genre tags %}
53             {% endif %}
54             {% if categories.epoch %}
55                 <h2>Epoki</h2>
56                 {% tag_list categories.epoch tags %}
57             {% endif %}        
58         </div>
59         <div id="themes-list">
60             {% if categories.theme %}
61                 <h2>Motywy</h2>
62                 {% tag_list categories.theme tags %}
63             {% endif %}
64         </div>
65         <div class="clearboth"></div>
66     </div>
67     {% endif %}
68     <div id="set-window">
69         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
70         <div class="target">
71             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
72         </div>
73     </div>
74 {% endblock %}