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="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">
14 {% for tag in tags.author %}
15 <a href="{{ tag.get_absolute_gallery_url }}">{{ tag }}</a>{% if not forloop.last %},
16 {% endif %}{% endfor %}
19 {% if main_link %}<a href="{{ main_link }}">{% endif %}
21 {% if main_link %}</a>{% endif %}
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}}"/>
31 {% if main_link %}</a>{% endif %}
33 {# what about licensing icons here #}
38 <span class="category">
39 <span class="mono"> {% trans "Epoch" %}:</span> <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 %}
47 <span class="category">
48 <span class="mono"> {% trans "Kind" %}:</span> <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 %}
56 <span class="category">
57 <span class="mono"> {% trans "Genre" %}:</span> <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 %}
65 {% block extra_categories %}
72 <ul class="book-box-tools">
73 <li class="book-box-read">
74 <a href="{% url 'picture_viewer' picture.slug %}" class="downarrow">{% trans "View online" %}</a>
76 <li class="book-box-download">
77 <a href="{{picture.image_file.url}}" class="downarrow">{% trans "download original" %}</a>
81 {% block book-box-extra-info %}{% endblock %}
82 {% block box-append %}{% endblock %}
83 {% block right-column %}{% endblock %}
84 <div class="clearboth"></div>