X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..9bc86f5a6542c5893ac94284da33162a7c7be2d6:/src/picture/templates/picture/picture_short.html diff --git a/src/picture/templates/picture/picture_short.html b/src/picture/templates/picture/picture_short.html index 1bd70a11b..43f54ac26 100644 --- a/src/picture/templates/picture/picture_short.html +++ b/src/picture/templates/picture/picture_short.html @@ -2,83 +2,85 @@ {% load thumbnail %} {% load catalogue_tags social_tags %} {% load picture_tags %} -
-
- -
- -
-
- {% for tag in tags.author %} - {{ tag }}{% if not forloop.last %}, - {% endif %}{% endfor %} -
- -
+
+
+
+
+ {% with picture.get_absolute_url as main_link %} + {% with picture.tags_by_category as tags %} +
+
+ {% for tag in tags.author %} + {{ tag }}{% if not forloop.last %}, + {% endif %}{% endfor %} +
+ +
+
+ {% block picture-view %} + {% if main_link %}{% endif %} + {% thumbnail picture.image_file "216x288" crop="center" as thumb %} + + {% endthumbnail %} + {% if main_link %}{% endif %} + {% endblock %} + {# what about licensing icons here #} +
-
- {% block picture-view %} - {% if main_link %}{% endif %} - {% thumbnail picture.image_file "216x288" crop="center" as thumb %} - - {% endthumbnail %} - {% if main_link %}{% endif %} - {% endblock %} - {# what about licensing icons here #} -
- -
+
{% spaceless %} + + {% trans "Epoch" %}:  + {% for tag in tags.epoch %} + {{ tag }} + {% if not forloop.last %}, {% endif %} + {% endfor %} + + - - {% trans "Epoch" %}:  - {% for tag in tags.epoch %} - {{ tag }} - {% if not forloop.last %}, {% endif %} - {% endfor %} - + + {% trans "Kind" %}:  + {% for tag in tags.kind %} + {{ tag }} + {% if not forloop.last %}, {% endif %} + {% endfor %} + + - - {% trans "Kind" %}:  - {% for tag in tags.kind %} - {{ tag }} - {% if not forloop.last %}, {% endif %} - {% endfor %} - - - - {% trans "Genre" %}:  - {% for tag in tags.genre %} - {{ tag }} - {% if not forloop.last %}, {% endif %} - {% endfor %} - - - {% block extra_categories %} - {% endblock %} + + {% trans "Genre" %}:  + {% for tag in tags.genre %} + {{ tag }} + {% if not forloop.last %}, {% endif %} + {% endfor %} + + + {% block extra_categories %} + {% endblock %} {% endspaceless %} -
+
+ {% endwith %} + {% endwith %} +
+
- {% block book-box-extra-info %}{% endblock %} - {% block box-append %} - {% endblock %} - {% block right-column %} - {% endblock %} + {% block box-append %}{% endblock %} + {% block right-column %}{% endblock %}
-
+