X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/82fa12952975d2857e2eb02d66a7f133fd4d5e2e..61d9353dd7e4194b45cc1e23cbc370dec3c8fdb0:/wolnelektury/templates/catalogue/book_short.html diff --git a/wolnelektury/templates/catalogue/book_short.html b/wolnelektury/templates/catalogue/book_short.html index 7f93a592b..3012069f9 100644 --- a/wolnelektury/templates/catalogue/book_short.html +++ b/wolnelektury/templates/catalogue/book_short.html @@ -2,14 +2,16 @@
- {% if book.children %} + {% if book.children.all|length %} {% else %} {% endif %}Na skróty: {{ formats|join:", "|safe }}
-Utwór w kategoriach: {{ tags|join:", "|safe }}
+ {% if formats %} +Na skróty: {{ formats|join:", " }}
+ {% endif %} +Utwór w kategoriach: {{ tags|join:", " }}