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