{% spaceless %}
-{% load i18n %}
-{% load ssi_include from ssify %}
-<div class="collection-box white-box">
- <h2><a href="{{ obj.get_absolute_url }}">{% trans "Collection" %}: {{ obj }}</a></h2>
- {% if obj.description %}
- {{ obj.description|safe|truncatewords_html:40 }}
+ {% load i18n %}
+ {% load thumbnail %}
+ <div class="collection-box white-box">
+ <h2><a href="{{ collection.get_absolute_url }}">{{ collection }}</a></h2>
+ <div class="description">
+ {% 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 %}
- <a href="{{ obj.get_absolute_url }}">
- {% blocktrans with c=more %}and {{ c }} more{% endblocktrans %}
- </a>
- {% endif %}
- {% endwith %}
-
-</div>
+ </div>
+ <div class="covers">
+ {% for book in collection.get_books|slice:":6" %}
+ <a href="{{ book.get_absolute_url }}">
+ <img src="{% thumbnail book.cover_clean '139x193' as th %}{{ th.url }}{% endthumbnail %}" alt="{{ book.pretty_title }}" title="{{ book.pretty_title }}">
+ </a>
+ {% endfor %}
+ </div>
+ </div>
{% endspaceless %}