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