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