minor fix
[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="picture-left-column">
9       <div class="book-box-body">
10         {% with picture.get_absolute_url as main_link %}
11         {% with picture.tags_by_category as tags %}
12           <div class="book-box-head">
13               <div class="author">
14                   {% for tag in tags.author %}
15                       <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>{% if not forloop.last %},
16                   {% endif %}{% endfor %}
17               </div>
18               <div class="title">
19                   {% if main_link %}<a href="{{ main_link }}">{% endif %}
20                       {{ picture.title }}
21                   {% if main_link %}</a>{% endif %}
22               </div>
23           </div>
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               <span class="category">
39                 <span class="mono"> {% trans "Epoka" %}:</span>&nbsp;<span class="book-box-tag">
40                   {% for tag in tags.epoch %}
41                     <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
42                     {% if not forloop.last %}<span>, </span>{% endif %}
43                   {% endfor %}
44                 </span>
45               </span>
46
47               <span class="category">
48                 <span class="mono"> {% trans "Rodzaj" %}:</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>
54               </span>
55
56               <span class="category">
57                 <span class="mono"> {% trans "Gatunek" %}:</span>&nbsp;<span class="book-box-tag">
58                   {% for tag in tags.genre %}
59                     <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
60                     {% if not forloop.last %}<span>, </span>{% endif %}
61                   {% endfor %}
62                 </span>
63               </span>
64
65               {% block extra_categories %}
66               {% endblock %}
67             {% endspaceless %}
68           </div>
69         {% endwith %}
70         {% endwith %}
71       </div>
72       <ul class="book-box-tools">
73         <li class="book-box-read">
74           <a href="{% url 'picture_viewer' picture.slug %}" class="downarrow">{% trans "Zobacz online" %}</a>
75         </li>
76         <li class="book-box-download">
77           <a href="{{picture.image_file.url}}" class="downarrow">{% trans "pobierz oryginaƂ" %}</a>
78         </li>
79       </ul>
80     </div>
81     {% block book-box-extra-info %}{% endblock %}
82     {% block box-append %}{% endblock %}
83     {% block right-column %}{% endblock %}
84     <div class="clearboth"></div>
85   </div>
86 </div>