6095f441f44eee470a4b78e94300ef8fd146785e
[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 <div class="book-left-column">
8
9 <div class="book-box-body">
10
11         <div class="book-box-head">
12             <div class="author">
13                 {% for tag in tags.author %}
14                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>{% if not forloop.last %},
15                 {% endif %}{% endfor %}
16             </div>
17             <div class="title">
18                                 {% if main_link %}<a href="{{ main_link }}">{% endif %}
19                                         {{ picture.title }}
20                             {% if main_link %}</a>{% endif %}
21                         </div>
22         </div>
23
24
25
26   <div class="cover-area">
27     {% block picture-view %}
28     {% if main_link %}<a href="{{ main_link }}">{% endif %}
29       {% thumbnail picture.image_file "216x288" crop="center" as thumb %}
30       <img class="cover" src="{{thumb.url}}"/>
31       {% endthumbnail %}
32     {% if main_link %}</a>{% endif %}
33     {% endblock %}
34      {# what about licensing icons here #}
35   </div>
36      
37         <div class="tags">
38             {% spaceless %}
39
40             <span class="category">
41             <span class="mono"> {% trans "Epoch" %}:</span>&nbsp;<span class="book-box-tag">
42                 {% for tag in tags.epoch %}
43                         <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
44                         {% if not forloop.last %}<span>, </span>{% endif %}
45                 {% endfor %}
46             </span></span>
47
48             <span class="category">
49             <span class="mono"> {% trans "Kind" %}:</span>&nbsp;<span class="book-box-tag">
50                 {% for tag in tags.kind %}
51                         <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
52                         {% if not forloop.last %}<span>, </span>{% endif %}
53                 {% endfor %}
54             </span></span>
55
56             <span class="category">
57             <span class="mono"> {% trans "Genre" %}:</span>&nbsp;<span class="book-box-tag">
58                 {% for tag in tags.genre %}
59                         <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
60                         {% if not forloop.last %}<span>, </span>{% endif %}
61                 {% endfor %}
62             </span></span>
63
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 %}
77     {% endblock %}
78     {% block right-column %}
79     {% endblock %}
80     <div class="clearboth"></div>
81 </div>
82 </div>
83 </div>