X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0..13f2f447ee06e5a95b86ee6d027b17d209518fdd:/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 1d9206b60..c19ea8d54 100644
--- a/src/catalogue/templates/catalogue/collection_box.html
+++ b/src/catalogue/templates/catalogue/collection_box.html
@@ -1,24 +1,18 @@
{% spaceless %}
-{% load i18n %}
-{% load ssi_include from ssify %}
-{% load cache %}
-
-
- {% if obj.description %}
- {{ obj.description|safe|truncatewords_html:40 }}
+ {% load i18n %}
+
+
+
+ {% if collection.description %}
+ {{ collection.description|safe|truncatewords_html:40 }}
{% endif %}
- {% for book in obj.get_books|slice:":5" %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
- {#% ssi_include 'catalogue_book_mini' pk=book.pk %#}
- {% endfor %}
- {% with obj.get_books.count|add:-5 as more %}
- {% if more > 0 %}
-
- {% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %}
-
- {% endif %}
- {% endwith %}
-
+
+
+ {% for book in collection.get_books|slice:":6" %}
+
+
+
+ {% endfor %}
+
+
{% endspaceless %}