f89d498d15b7f2ab96a5a05540de3603657970de
[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             <div id="download-shelf-menu" style="display:none;">
33                 <form action="{% url download_shelf last_tag.slug %}" method="get" accept-charset="utf-8" id="download-formats-form" data-formats-feed="{% url shelf_book_formats last_tag.slug %}">
34                     <p>Wybierz formaty książek, które chcesz pobrać:</p>
35                     <li data-format="pdf"><label for="id_formats_2"><input type="checkbox" name="formats" value="pdf" id="id_formats_2" /> PDF</label> <em><strong>do czytania</strong> i drukowania przy pomocy <a href="http://get.adobe.com/reader/">Adobe Reader</a></em></li>
36                     <li data-format="odt"><label for="id_formats_3"><input type="checkbox" name="formats" value="odt" id="id_formats_3" /> ODT</label> <em><strong>do czytania</strong> i edytowania przy pomocy <a href="http://pl.openoffice.org/">OpenOffice.org</a></em></li>
37                     <li data-format="txt"><label for="id_formats_4"><input type="checkbox" name="formats" value="txt" id="id_formats_4" /> TXT</label> <em><strong>do czytania</strong> na małych ekranach, np. na komórce</em></li>
38                     <li data-format="mp3"><label for="id_formats_0"><input type="checkbox" name="formats" value="mp3" id="id_formats_0" /> MP3</label> <em><strong>do słuchania</strong> w ulubionym odtwarzaczu MP3</em></li>
39                     <li data-format="ogg"><label for="id_formats_1"><input type="checkbox" name="formats" value="ogg" id="id_formats_1" /> OGG Vorbis</label> <em><strong>do słuchania</strong> &mdash; otwarty format <a href="http://www.vorbis.com/">Fundacji Xiph.Org</a></em></li>
40                     <li id="download-formats-form-submit-li"><label><input type="submit" name="submit" value="Pobierz" id="download-formats-form-submit" disabled="disabled" />&nbsp;<img src="/static/img/indicator.gif" /></label> <span id="updating-formats">Uaktualniam listę formatów książek na półce.</span><span id="formats-updated" style="display:none;">lub <a href="#" id="download-formats-form-cancel">anuluj</a></span></li>
41                     <div class="clearboth"></div>
42                 </form>
43             </div>
44         {% endif %}
45         {% if last_tag.gazeta_link %}
46         <p><a href="{{ last_tag.gazeta_link }}">
47             {% ifequal last_tag.category "author" %}Przeczytaj omówienia utworów autora w serwisie Lektury.Gazeta.pl{% endifequal %}
48             {% ifequal last_tag.category "epoch"  %}Przeczytaj omówienia z epoki {{ last_tag }} w serwisie Lektury.Gazeta.pl{% endifequal %}
49         </a></p>
50         {% endif %}
51         {% if last_tag.wiki_link %}
52         <p><a href="{{ last_tag.wiki_link }}">
53             {% ifequal last_tag.category "author" %}Przeczytaj artykuł o autorze w Wikipedii{% endifequal %}
54             {% ifequal last_tag.category "epoch"  %}Przeczytaj artykuł o epoce {{ last_tag }} w Wikipedii{% endifequal %}
55         </a></p>
56         {% endif %}
57         <ol>
58         {% for book in object_list %}
59             <li>
60                 {% if user_is_owner %}
61                     <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
62                 {% endif %}
63                 {{ book.short_html }}</li>
64         {% endfor %}
65         </ol>
66         {% endwith %}
67         {% paginate %}
68     </div>
69     <div id="tags-list">
70         <div id="categories-list">
71             {% if categories.author %}
72                 <h2>Autorzy</h2>
73                 {% tag_list categories.author tags %}
74             {% endif %}
75             {% if categories.kind %}
76                 <h2>Rodzaje</h2>
77                 {% tag_list categories.kind tags %}
78             {% endif %}
79             {% if categories.genre %}
80                 <h2>Gatunki literackie</h2>
81                 {% tag_list categories.genre tags %}
82             {% endif %}
83             {% if categories.epoch %}
84                 <h2>Epoki</h2>
85                 {% tag_list categories.epoch tags %}
86             {% endif %}        
87         </div>
88         <div id="themes-list">
89             {% if categories.theme %}
90                 <h2>Motywy</h2>
91                 {% tag_list categories.theme tags %}
92             {% endif %}
93         </div>
94         <div class="clearboth"></div>
95     </div>
96     {% endif %}
97     <div id="set-window">
98         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
99         <div class="target">
100             <p><img src="/static/img/indicator.gif" alt="*"/> Ładowanie</p>
101         </div>
102     </div>
103 {% endblock %}