346034b1d95153b3895d3c06424b6e589d2434df
[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 class="clearboth"></div>
26             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
27         {% endif %}
28         {% if shelf_is_set %}
29             <a id="download-shelf" href="{% url download_shelf last_tag.slug %}">
30                 Pobierz wszystkie książki z tej półki
31             </a>
32         {% endif %}
33         {% endwith %}
34         <ol>
35         {% for book in object_list %}
36             <li>{{ book.short_html }}</li>
37         {% endfor %}
38         </ol>
39         {% paginate %}
40     </div>
41     <div id="tags-list">
42         <div id="categories-list">
43             {% if categories.author %}
44                 <h2>Autorzy</h2>
45                 {% tag_list categories.author tags %}
46             {% endif %}
47             {% if categories.kind %}
48                 <h2>Rodzaje</h2>
49                 {% tag_list categories.kind tags %}
50             {% endif %}
51             {% if categories.genre %}
52                 <h2>Gatunki literackie</h2>
53                 {% tag_list categories.genre tags %}
54             {% endif %}
55             {% if categories.epoch %}
56                 <h2>Epoki</h2>
57                 {% tag_list categories.epoch tags %}
58             {% endif %}        
59         </div>
60         <div id="themes-list">
61             {% if categories.theme %}
62                 <h2>Motywy</h2>
63                 {% tag_list categories.theme tags %}
64             {% endif %}
65         </div>
66         <div class="clearboth"></div>
67     </div>
68     {% endif %}
69     <div id="set-window">
70         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
71         <div class="target">
72             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
73         </div>
74     </div>
75 {% endblock %}