X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ea8f84ddca76adc928172a3718468b19c8b4aa15..e6e2a0c15e0c3910e1a89cf3f96d4f768c6888d9:/wolnelektury/templates/catalogue/book_short.html

diff --git a/wolnelektury/templates/catalogue/book_short.html b/wolnelektury/templates/catalogue/book_short.html
index a94244229..3012069f9 100644
--- a/wolnelektury/templates/catalogue/book_short.html
+++ b/wolnelektury/templates/catalogue/book_short.html
@@ -2,10 +2,16 @@
     <div class="change-sets">
         <a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">Na półkę!</a>
     </div>
-    <div class="book-thumbnail"></div>
+    {% if book.children.all|length %}
+        <div class="book-parent-thumbnail"></div>
+    {% else %}
+        <div class="book-thumbnail"></div>
+    {% endif %}
     <div class="book-description">
         <h2><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h2>
-        <p style="margin: 0">Formaty: {{ formats|join:", "|safe }}</p>
-        <p style="margin: 0">Utwór w kategoriach: {{ tags|join:", "|safe }}</p>
+        {% if formats %}
+            <p style="margin: 0">Na skróty: {{ formats|join:", " }}</p>
+        {% endif %}
+        <p style="margin: 0">Utwór w kategoriach: {{ tags|join:", " }}</p>
     </div>
 </div>