fix
[wolnelektury.git] / src / catalogue / templates / catalogue / collection_box.html
index c32122f..495fe23 100644 (file)
@@ -1,19 +1,10 @@
-{% spaceless %}
-  {% load i18n %}
-  <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" %}
-      {{ book.mini_box }}
-    {% endfor %}
-    {% with collection.get_books.count|add:-5 as more %}
-      {% if more > 0 %}
-        <a href="{{ collection.get_absolute_url }}">
-          {% blocktrans count c=more %}and one more{% plural %}and {{ c }} more{% endblocktrans %}
-        </a>
-      {% endif %}
-    {% endwith %}
-  </div>
-{% endspaceless %}
+<div class="c-collectionbox">
+  <a href="{{ collection.get_absolute_url }}">
+    <div class="c-collectionbox-covers">
+      {% for c in collection.example3 %}
+        <img src="{{ c.cover_clean.url }}">
+      {% endfor %}
+    </div>
+    {{ collection.title }}
+  </a>
+</div>