{% spaceless %}
{% load i18n %}
- {% load ssi_include from ssify %}
- {% load cache %}
<div class="collection-box white-box">
<h2><a href="{{ collection.get_absolute_url }}">{% trans "Collection" %}: {{ collection }}</a></h2>
{% if collection.description %}
{{ collection.description|safe|truncatewords_html:40 }}
{% endif %}
{% for book in collection.get_books|slice:":5" %}
- {% cache 86400 book_mini_box book.pk %}
- {% include 'catalogue/book_mini_box.html' %}
- {% endcache %}
+ {{ book.mini_box }}
{% endfor %}
{% with collection.get_books.count|add:-5 as more %}
{% if more > 0 %}