881dcfe21fed977cae37c314a06c81a753b10404
[wolnelektury.git] / apps / 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_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_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_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_url }}">{{ tag }}</a>
59                         {% if not forloop.last %}<span>, </span>{% endif %}
60                 {% endfor %}
61             </span></span>
62
63             {% endspaceless %}
64         </div>
65     </div>
66     <ul class="book-box-tools">
67       <li class="book-box-read">
68         <a href="{% url 'picture_viewer' picture.slug %}" class="downarrow">{% trans "View online" %}</a>
69       </li>
70       <li class="book-box-download">
71         <a href="{{picture.image_file.url}}" class="downarrow">{% trans "download original" %}</a>
72       </li>
73     </ul>
74     {% block book-box-extra-info %}{% endblock %}
75     {% block box-append %}
76     {% endblock %}
77     {% block right-column %}
78     {% endblock %}
79     <div class="clearboth"></div>
80 </div>
81 </div>