Merge branch 'reflow'
[wolnelektury.git] / src / catalogue / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags switch_tag social_tags %}
4 {% load ssi_include from ssify %}
5
6 {% block titleextra %}{% if tags %}{% title_from_tags tags %}{% elif gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %}{% endif %}{% endblock %}
7
8 {% block bodyid %}tagged-object-list{% endblock %}
9
10 {% block body %}
11 <div class="tabbed-filter">
12     <h1>{% if tags %}
13         {% html_title_from_tags tags %}
14         {% elif gallery %}{% trans "Gallery" %}{% else %}{% trans "Literature" %}
15         {% endif %}
16     </h1>
17
18     <div class="tabs">
19         <a class="tab white-box" data-id="authors">{% trans "Authors" %}</a>
20         <a class="tab white-box" data-id="epochs">{% trans "Epochs" %}</a>
21         <a class="tab white-box" data-id="genres">{% trans "Genres" %}</a>
22         <a class="tab white-box" data-id="kinds">{% trans "Kinds" %}</a>
23         {% if theme_is_set %}
24         <a class="tab white-box" data-id="themes">{% trans "Themes" %}</a>
25         {% endif %}
26     </div>
27
28 </div>
29 <div class="tabbed-filter-contents">
30     <div id="authors" class="white-box normal-text tab-content">
31         {% inline_tag_list categories.author tags 'author' gallery=gallery %}
32     </div>
33     <div id="epochs" class="white-box normal-text tab-content">
34         {% inline_tag_list categories.epoch tags 'epoch' gallery=gallery %}
35     </div>
36     <div id="genres" class="white-box normal-text tab-content">
37         {% inline_tag_list categories.genre tags 'genre' gallery=gallery %}
38     </div>
39     <div id="kinds" class="white-box normal-text tab-content">
40         {% inline_tag_list categories.kind tags 'kind' gallery=gallery %}
41     </div>
42     {% if theme_is_set %}
43         <div id="themes" class="white-box normal-text tab-content">
44             {% inline_tag_list categories.theme tags 'theme' gallery=gallery %}
45         </div>
46     {% endif %}
47 </div>
48
49
50
51
52     {% if theme_is_set %}
53         {% work_list object_list %}
54     {% else %}
55     <div id="books-list">
56         {% if object_list %}
57             {% work_list best %}
58             {% if tags %}
59                 <h2>{% trans "All matching works" %}</h2>
60             {% else %}
61                 <h2>{% trans "All works" %}</h2>
62             {% endif %}
63             {% plain_list object_list by_author=True gallery=gallery %}
64         {% else %}
65             {% trans "Sorry! Search cirteria did not match any resources." %}
66             {% include "info/join_us.html" %}
67         {% endif %}
68     </div>
69
70
71
72
73 {% if categories.theme %}
74     <h2>{% trans "Motifs and themes" %}</h2>
75     {% plain_list categories.theme choice=tags gallery=gallery %}
76 {% endif %}
77
78
79
80 {% endif %}
81
82
83
84     {% for tag in tags %}
85     {% if tag.category != 'set' %}
86     <h2>{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}</h2>
87         <div class="white-box">
88         {% if tag.has_description %}
89             {{ tag.description|safe }}
90         {% else %}
91             <em>{% trans "No description." %}</em>
92         {% endif %}
93         </div>
94
95         {% if tag.gazeta_link %}
96         <div class="white-box"><a href="{{ tag.gazeta_link }}">
97             {{ tag }} {% trans "in Lektury.Gazeta.pl" %}
98         </a></div>
99         {% endif %}
100         {% if tag.wiki_link %}
101         <div class="white-box">
102         <a href="{{ tag.wiki_link }}">
103             {{ tag }} {% trans "in Wikipedia" %}
104         </a></div>
105         {% endif %}
106         {% if tag.culturepl_link %}
107         <div class="white-box">
108         <a href="{{ tag.culturepl_link }}">
109             {{ tag }} {% trans "in Culture.pl" %}
110         </a></div>
111         {% endif %}
112     {% endif %}
113     {% endfor %}
114
115
116
117
118
119 {% endblock %}