Merge branch 'pretty' of github.com:fnp/wolnelektury into pretty
[wolnelektury.git] / wolnelektury / templates / catalogue / tagged_object_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags switch_tag social_tags %}
4
5 {% block titleextra %}{% title_from_tags tags %}{% endblock %}
6
7 {% block bodyid %}tagged-object-list{% endblock %}
8
9 {% block body %}
10     <div class="left-column">
11     <div class="page-desc">
12     <h1>{% html_title_from_tags tags %}</h1>
13
14     {% with tags|last as last_tag %}
15     {% if last_tag.has_description %}
16         <div id="description" class="normal-text">
17             <div id='description-long' style="display:none">{{ last_tag.description|safe }}</div>
18             <div id='description-short'>{{ last_tag.description|safe|truncatewords_html:40 }}</div>
19         </div>
20     {% endif %}
21
22
23     <div class="inline-tag-lists">
24     {% if categories.author %}
25         <div>
26                 <div class="mono inline-header">{% trans "Authors" %}:</div>
27             <div class="inline-body">
28                             {% inline_tag_list categories.author tags %}
29                 </div>
30         </div>
31     {% endif %}
32     {% if categories.kind %}
33         <div>
34                 <div class="mono inline-header">{% trans "Kinds" %}:</div>
35             <div class="inline-body">
36                             {% inline_tag_list categories.kind tags %}
37                 </div>
38         </div>
39     {% endif %}
40     {% if categories.genre %}
41         <div>
42                 <div class="mono inline-header">{% trans "Genres" %}:</div>
43             <div class="inline-body">
44                             {% inline_tag_list categories.genre tags %}
45                 </div>
46         </div>
47     {% endif %}
48     {% if categories.epoch %}
49         <div class="inline-tag-list">
50                 <div class="mono inline-header">{% trans "Epochs" %}:</div>
51             <div class="inline-body">
52                             {% inline_tag_list categories.epoch tags %}
53                 </div>
54         </div>
55     {% endif %}
56     </div>
57
58     {% if categories.theme %}
59         <div class="hidden-box-wrapper">
60             <p><a href="#" class="hidden-box-trigger theme-list-link mono">
61                 {% trans "Motifs and themes" %}</a></p>
62             <div class="hidden-box">
63                 {% tag_list categories.theme tags %}
64             </div>
65         </div>
66     {% endif %}
67
68
69         {% if theme_is_set %}
70         <div class="see-also">
71             {% if last_tag.gazeta_link or last_tag.wiki_link %}
72             <h2 class='mono'>{% trans "See also" %}:</h2>
73             <ul>
74         {% if last_tag.gazeta_link %}
75         <li><a href="{{ last_tag.gazeta_link }}">
76                 {% trans "in Lektury.Gazeta.pl" %}
77         </a></li>
78         {% endif %}
79         {% if last_tag.wiki_link %}
80         <li><a href="{{ last_tag.wiki_link }}">
81                         {% trans "in Wikipedia" %}
82         </a></li>
83         {% endif %}
84             </ul>
85             {% endif %}
86         </div>
87     {% endif %}
88
89
90     </div>
91     </div>
92
93
94     <div class="right-column">
95         {% if theme_is_set %}
96             {% work_list object_list %}
97         {% else %}
98         {% cite_promo tags 1 %}
99
100         <div class="see-also">
101             {% if last_tag.gazeta_link or last_tag.wiki_link %}
102             <h2 class='mono'>{% trans "See also" %}:</h2>
103             <ul>
104         {% if last_tag.gazeta_link %}
105         <li><a href="{{ last_tag.gazeta_link }}">
106                 {% trans "in Lektury.Gazeta.pl" %}
107         </a></li>
108         {% endif %}
109         {% if last_tag.wiki_link %}
110         <li><a href="{{ last_tag.wiki_link }}">
111                         {% trans "in Wikipedia" %}
112         </a></li>
113         {% endif %}
114
115
116
117             </ul>
118             {% endif %}
119         </div>
120
121         <div class="download">
122             {% comment %}
123             <h2 class='mono'>{% trans "Download" %}:</h2>
124             <ul>
125                 <li><a href="">wszystko</a></li>
126                 <li><a href="">część</a></li>
127             </ul>
128             {% endcomment %}
129         </div>
130         {% endif %}
131
132     </div>
133
134     <div class="clearboth"></div>
135
136
137
138     {% if not theme_is_set %}
139     <div id="books-list">
140         {% if object_list %}
141             {% work_list object_list %}
142         {% else %}
143             {% trans "Sorry! Search cirteria did not match any resources." %}
144             {% include "info/join_us.html" %}
145         {% endif %}
146     </div>
147     {% endif %}
148     {% endwith %}
149 {% endblock %}