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