X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/190a12c5524f533a5fa74569575cccf22f745847..a3b153ea6e30da275edf3e34b8d2f8ca1bb436cc:/src/catalogue/templates/catalogue/2022/book_box.html diff --git a/src/catalogue/templates/catalogue/2022/book_box.html b/src/catalogue/templates/catalogue/2022/book_box.html index 2d2ac05e6..97c61d936 100644 --- a/src/catalogue/templates/catalogue/2022/book_box.html +++ b/src/catalogue/templates/catalogue/2022/book_box.html @@ -1,12 +1,14 @@ {% load sorl_thumbnail %} -
-
+
+
{% if book.is_picture %} {% if book.image_file %} {% thumbnail book.image_file "170x240" crop="center" as im %} - + {% endthumbnail %} {% endif %} {% else %} @@ -15,23 +17,39 @@ {% endif %} {% endif %} + +
+
+
+ {% csrf_token %} {# this needs to be copied in with JS #} + + + +
+
+
{% if book.is_book %} {% endif %} - {% if book.has_mp3 %} + {% if book.has_mp3_file %} {% endif %} {% if book.is_picture %} {% endif %} - +
-

+

{% for author in book.authors %} {{ author }}{% if not forloop.last %}, {% endif %} {% endfor %}

-

{{ book.title }}

+

{{ book.title }}

+ + {% for kind in book.kinds %}{{ kind }} {% endfor %} + {% for genre in book.genres %}{{ genre }} {% endfor %} + {% for epoch in book.epochs %}{{ epoch }} {% endfor %} +