Generally working version.
[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             <h2>{% trans "All matching works" %}</h2>
59             {% plain_list object_list by_author=True gallery=gallery %}
60         {% else %}
61             {% trans "Sorry! Search cirteria did not match any resources." %}
62             {% include "info/join_us.html" %}
63         {% endif %}
64     </div>
65
66
67
68
69 {% if categories.theme %}
70     <h2>{% trans "Motifs and themes" %}</h2>
71     {% plain_list categories.theme choice=tags gallery=gallery %}
72 {% endif %}
73
74
75
76 {% endif %}
77
78
79
80     {% for tag in tags %}
81     {% if tag.category != 'set' %}
82     <h2>{% trans tag.category as c %}{{ c|capfirst }}: {{ tag }}</h2>
83         <div class="white-box">
84         {% if tag.has_description %}
85             {{ tag.description|safe }}
86         {% else %}
87             <em>{% trans "No description." %}</em>
88         {% endif %}
89         </div>
90
91         {% if tag.gazeta_link %}
92         <div class="white-box"><a href="{{ tag.gazeta_link }}">
93             {{ tag }} {% trans "in Lektury.Gazeta.pl" %}
94         </a></div>
95         {% endif %}
96         {% if tag.wiki_link %}
97         <div class="white-box">
98         <a href="{{ tag.wiki_link }}">
99             {{ tag }} {% trans "in Wikipedia" %}
100         </a></div>
101         {% endif %}
102         {% if tag.culturepl_link %}
103         <div class="white-box">
104         <a href="{{ tag.culturepl_link }}">
105             {{ tag }} {% trans "in Culture.pl" %}
106         </a></div>
107         {% endif %}
108     {% endif %}
109     {% endfor %}
110
111
112
113
114
115 {% endblock %}