3 {% load catalogue_tags social_tags %}
4 {% load picture_tags %}
6 <div class="{% block box-class %}book-box{% endblock %} picture">
7 <div class="book-box-inner">
8 <div class="book-box-body">
9 {% with picture.get_absolute_url as main_link %}
10 {% with picture.tags_by_category as tags %}
11 <div class="book-box-head">
13 {% for tag in tags.author %}
14 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>{% if not forloop.last %},
15 {% endif %}{% endfor %}
18 {% if main_link %}<a href="{{ main_link }}">{% endif %}
20 {% if main_link %}</a>{% endif %}
24 <div class="cover-area">
25 {% block picture-view %}
26 {% if main_link %}<a href="{{ main_link }}">{% endif %}
27 {% thumbnail picture.image_file "216x288" crop="center" as thumb %}
28 <img class="cover" src="{{thumb.url}}"/>
30 {% if main_link %}</a>{% endif %}
32 {# what about licensing icons here #}
37 <span class="category">
38 <span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
39 {% for tag in tags.epoch %}
40 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
41 {% if not forloop.last %}<span>, </span>{% endif %}
46 <span class="category">
47 <span class="mono"> {% trans "Kind" %}:</span> <span class="book-box-tag">
48 {% for tag in tags.kind %}
49 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>
50 {% if not forloop.last %}<span>, </span>{% endif %}
55 <span class="category">
56 <span class="mono"> {% trans "Genre" %}:</span> <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 %}
64 {% block extra_categories %}
71 <ul class="book-box-tools">
72 <li class="book-box-read">
73 <a href="{% url 'picture_viewer' picture.slug %}" class="downarrow">{% trans "View online" %}</a>
75 <li class="book-box-download">
76 <a href="{{picture.image_file.url}}" class="downarrow">{% trans "download original" %}</a>
79 {% block book-box-extra-info %}{% endblock %}
80 {% block box-append %}{% endblock %}
81 {% block right-column %}{% endblock %}
82 <div class="clearboth"></div>