X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/87e084d47c335cd6f0b3e91d614999f55d148044..0eedef1eafceaaa3f4f78b014236bf642be2807b:/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..c19ea8d54 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,21 +1,18 @@ {% spaceless %} -{% load i18n %} -{% load ssi_include from ssify %} -
-

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

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

{{ 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 %}