Added page "{{ theme }} in {{ book }}".
[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         <ol>
34         {% for book in object_list %}
35             <li>
36                 {% if user_is_owner %}
37                     <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
38                 {% endif %}
39                 {{ book.short_html }}</li>
40         {% endfor %}
41         </ol>
42         {% endwith %}
43         {% paginate %}
44     </div>
45     <div id="tags-list">
46         <div id="categories-list">
47             {% if categories.author %}
48                 <h2>Autorzy</h2>
49                 {% tag_list categories.author tags %}
50             {% endif %}
51             {% if categories.kind %}
52                 <h2>Rodzaje</h2>
53                 {% tag_list categories.kind tags %}
54             {% endif %}
55             {% if categories.genre %}
56                 <h2>Gatunki literackie</h2>
57                 {% tag_list categories.genre tags %}
58             {% endif %}
59             {% if categories.epoch %}
60                 <h2>Epoki</h2>
61                 {% tag_list categories.epoch tags %}
62             {% endif %}        
63         </div>
64         <div id="themes-list">
65             {% if categories.theme %}
66                 <h2>Motywy</h2>
67                 {% tag_list categories.theme tags %}
68             {% endif %}
69         </div>
70         <div class="clearboth"></div>
71     </div>
72     {% endif %}
73     <div id="set-window">
74         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
75         <div class="target">
76             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
77         </div>
78     </div>
79 {% endblock %}