reformat templates
[wolnelektury.git] / src / picture / templates / picture / picture_short.html
1 {% load i18n %}
2 {% load thumbnail %}
3 {% load catalogue_tags social_tags %}
4 {% load picture_tags %}
5
6 <div class="{% block box-class %}book-box{% endblock %} picture">
7   <div class="book-box-inner">
8     <div class="book-box-body">
9       <div class="book-box-head">
10           <div class="author">
11               {% for tag in tags.author %}
12                   <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>{% if not forloop.last %},
13               {% endif %}{% endfor %}
14           </div>
15           <div class="title">
16               {% if main_link %}<a href="{{ main_link }}">{% endif %}
17                   {{ picture.title }}
18               {% if main_link %}</a>{% endif %}
19           </div>
20       </div>
21
22       <div class="cover-area">
23         {% block picture-view %}
24         {% if main_link %}<a href="{{ main_link }}">{% endif %}
25           {% thumbnail picture.image_file "216x288" crop="center" as thumb %}
26           <img class="cover" src="{{thumb.url}}"/>
27           {% endthumbnail %}
28         {% if main_link %}</a>{% endif %}
29         {% endblock %}
30          {# what about licensing icons here #}
31       </div>
32
33       <div class="tags">
34         {% spaceless %}
35           <span class="category">
36             <span class="mono"> {% trans "Epoch" %}:</span>&nbsp;<span class="book-box-tag">
37               {% for tag in tags.epoch %}
38                 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
39                 {% if not forloop.last %}<span>, </span>{% endif %}
40               {% endfor %}
41             </span>
42           </span>
43
44           <span class="category">
45             <span class="mono"> {% trans "Kind" %}:</span>&nbsp;<span class="book-box-tag">
46               {% for tag in tags.kind %}
47                 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
48                 {% if not forloop.last %}<span>, </span>{% endif %}
49               {% endfor %}
50             </span>
51           </span>
52
53           <span class="category">
54             <span class="mono"> {% trans "Genre" %}:</span>&nbsp;<span class="book-box-tag">
55               {% for tag in tags.genre %}
56                 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
57                 {% if not forloop.last %}<span>, </span>{% endif %}
58               {% endfor %}
59             </span>
60           </span>
61
62           {% block extra_categories %}
63           {% endblock %}
64         {% endspaceless %}
65       </div>
66     </div>
67     <ul class="book-box-tools">
68       <li class="book-box-read">
69         <a href="{% url 'picture_viewer' picture.slug %}" class="downarrow">{% trans "View online" %}</a>
70       </li>
71       <li class="book-box-download">
72         <a href="{{picture.image_file.url}}" class="downarrow">{% trans "download original" %}</a>
73       </li>
74     </ul>
75     {% block book-box-extra-info %}{% endblock %}
76     {% block box-append %}{% endblock %}
77     {% block right-column %}{% endblock %}
78     <div class="clearboth"></div>
79   </div>
80 </div>