X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..a79b274856788fd355c87980186d76ff5a7f9cd6:/src/catalogue/templates/catalogue/collection_box.html diff --git a/src/catalogue/templates/catalogue/collection_box.html b/src/catalogue/templates/catalogue/collection_box.html index 7c092943c..ec79ca617 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,21 +1,19 @@ {% spaceless %} -{% load i18n %} -{% load ssi_include from ssify %} -
-

{% trans "Collection" %}: {{ obj }}

- {% if obj.description %} - {{ obj.description|safe|truncatewords_html:40 }} + {% load i18n %} + {% load thumbnail %} +
+

{{ collection }}

+
+ {% if collection.description %} + {{ collection.description|safe|truncatewords_html:40 }} {% endif %} - {% for b in obj.get_books|slice:":5" %} - {% ssi_include 'catalogue_book_mini' pk=b.pk %} - {% endfor %} - {% with obj.get_books.count|add:-5 as more %} - {% if more > 0 %} - - {% blocktrans with c=more %}and {{ c }} more{% endblocktrans %} - - {% endif %} - {% endwith %} - -
+
+
+ {% for book in collection.get_books|slice:":6" %} + + {{ book.pretty_title }} + + {% endfor %} +
+
{% endspaceless %}