Changes "/static/" to {{ STATIC_URL }} in templates.
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags pagination_tags %}
4
5 {% block title %}{% title_from_tags tags %} w WolneLektury.pl{% endblock %}
6
7 {% block bodyid %}tagged-object-list{% endblock %}
8
9 {% block body %}
10     <h1>{% title_from_tags tags %}</h1>
11     {% breadcrumbs tags %}
12     
13     {% if shelf_is_set and not object_list %}
14     <div id="books-list">
15         <h2>Twoja półka jest pusta</h2>
16         <p>Możesz wrzucić książkę na półkę, wchodząc na stronę danej lektury i klikając na przycisk „Na półkę!”.</p>
17     </div>
18         {% else
19     {% else %}
20     {% autopaginate object_list 10 %}
21     <div id="books-list">
22         {% with tags|last as last_tag %}
23         {% if last_tag.has_description %}
24             <div id="description">
25                 {{ last_tag.description|safe }}
26             </div>
27             <div class="clearboth"></div>
28             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
29         {% endif %}
30         {% if shelf_is_set %}
31             <a id="download-shelf" href="{% url download_shelf last_tag.slug %}">
32                 Pobierz wszystkie książki z tej półki
33             </a>
34             <div id="download-shelf-menu" style="display:none;">
35                 <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 %}">
36                     <p>Wybierz formaty książek, które chcesz pobrać:</p>
37                     <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>
38                     <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>
39                     <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>
40                     <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>
41                     <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>
42                     <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_URL }}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>
43                     <div class="clearboth"></div>
44                 </form>
45             </div>
46         {% endif %}
47         {% if last_tag.gazeta_link %}
48         <p><a href="{{ last_tag.gazeta_link }}">
49             {% ifequal last_tag.category "author" %}Przeczytaj omówienia utworów autora w serwisie Lektury.Gazeta.pl{% endifequal %}
50             {% ifequal last_tag.category "epoch"  %}Przeczytaj omówienia z epoki {{ last_tag }} w serwisie Lektury.Gazeta.pl{% endifequal %}
51         </a></p>
52         {% endif %}
53         {% if last_tag.wiki_link %}
54         <p><a href="{{ last_tag.wiki_link }}">
55             {% ifequal last_tag.category "author" %}Przeczytaj artykuł o autorze w Wikipedii{% endifequal %}
56             {% ifequal last_tag.category "epoch"  %}Przeczytaj artykuł o epoce {{ last_tag }} w Wikipedii{% endifequal %}
57         </a></p>
58         {% endif %}
59
60         {% if object_list %}
61             <ol>
62             {% for book in object_list %}
63                 <li>
64                     {% if user_is_owner %}
65                         <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
66                     {% endif %}
67                     {{ book.short_html }}</li>
68             {% endfor %}
69             </ol>
70         {% else %}
71                         {% if only_author %}
72                     {% if last_tag.alive %}
73                                         Dzieła tego autora objęte są prawem autorskim.
74                                 {% else %}{% comment %} Nie żyje {% endcomment %}
75                     {% if last_tag.in_pd %}
76                             Dzieła tego autora znajdują się w domenie publicznej
77                                                 i niedługo zostaną opublikowane w szkolnej bibliotece
78                                                 internetowej Wolne Lektury. 
79                         {% else %}{% comment %} Nie żyje, ale jeszcze nie w PD {% endcomment %}
80                         <div>
81                                 <p>Dzieła tego autora przejdą do zasobów domeny
82                                                         publicznej i będą mogły być publikowane bez
83                                                         żadnych ograniczeń za:</p>
84                                                         {% include "catalogue/pd_counter.html" %}
85                                                 </div>
86                         {% endif %}
87                 {% endif %}
88                         {% else %}
89                             Nie znaleziono żadnych utworów.
90                         {% endif %}
91             {% include "info/join_us.html" %}
92         {% endif %}
93         {% endwith %}
94         {% paginate %}
95     </div>
96         {% if object_list %}
97         {% comment %} Jeśli nic nie znaleźliśmy, to i po prawej stronie nic nie będzie {% endcomment %}
98     <div id="tags-list">
99         <div id="categories-list">
100             {% if categories.author %}
101                 <h2>Autorzy</h2>
102                 {% tag_list categories.author tags %}
103             {% endif %}
104             {% if categories.kind %}
105                 <h2>Rodzaje</h2>
106                 {% tag_list categories.kind tags %}
107             {% endif %}
108             {% if categories.genre %}
109                 <h2>Gatunki literackie</h2>
110                 {% tag_list categories.genre tags %}
111             {% endif %}
112             {% if categories.epoch %}
113                 <h2>Epoki</h2>
114                 {% tag_list categories.epoch tags %}
115             {% endif %}        
116         </div>
117         <div id="themes-list">
118             {% if categories.theme %}
119                 <h2>Motywy</h2>
120                 {% tag_list categories.theme tags %}
121             {% endif %}
122         </div>
123         <div class="clearboth"></div>
124     </div>
125         {% endif %}
126     {% endif %}
127     <div id="set-window">
128         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
129         <div class="target">
130             <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> Ładowanie</p>
131         </div>
132     </div>
133 {% endblock %}