X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/02b46ac5bb9ae5301e4764b9c111c971aa86b333..8fefd8bdaca07a3f5607de79c081dc0f7876fbc7:/wolnelektury/templates/catalogue/book_short.html diff --git a/wolnelektury/templates/catalogue/book_short.html b/wolnelektury/templates/catalogue/book_short.html index 7f262374d..304cdc63e 100644 --- a/wolnelektury/templates/catalogue/book_short.html +++ b/wolnelektury/templates/catalogue/book_short.html @@ -1,11 +1,14 @@ {% load i18n %} +{% load catalogue_tags social_tags %} {% load thumbnail %}
-
- +
+ + + {% if book.cover %} + + +
+ +
+
+ +
+
+
+ +
- {% for author in tags.author %} - {{ author }} - {% endfor %} + {% for name, slug in related.tags.author %} + {{ name }}{% if not forloop.last %}, + {% endif %}{% endfor %}{% for title, slug in related.parents %}, + {{ title }}{% endfor %}
-
{{ book.title }}
+
-
- {% spaceless %} - {% trans "Epoch" %}:  - {% for tag in tags.epoch %} - {{ tag.name }} +
+ {% trans "Epoch" %}:  + {% for name, slug in related.tags.epoch %} + {{ name }} + {% if not forloop.last %}{% endif %} {% endfor %} - {% trans "Kind" %}:  - {% for tag in tags.kind %} - {{ tag.name }} + {% trans "Kind" %}:  + {% for name, slug in related.tags.kind %} + {{ name }} + {% if not forloop.last %}{% endif %} {% endfor %} - {% trans "Genre" %}:  - {% for tag in tags.genre %} - {{ tag.name }} + {% trans "Genre" %}:  + {% for name, slug in related.tags.genre %} + {{ name }} + {% if not forloop.last %}{% endif %} {% endfor %} - {% endspaceless %}
+ {% shelf_tags book %} +
  • {% if book.html_file %} @@ -57,27 +80,29 @@
  • {% trans "Download" %}
    - {% if formats.pdf %} - PDF do wydruku + {% if book.pdf_file %} + PDF do wydruku {% endif %} - {% if formats.epub %} - EPUB na czytnik + {% if book.epub_file %} + EPUB na czytnik {% endif %} - {% if formats.mobi %} - MOBI na Kindle + {% if book.mobi_file %} + MOBI na Kindle {% endif %} - {% if formats.txt %} - TXT do zadań specjalnych + {% if book.txt_file %} + TXT do zadań specjalnych {% endif %}
  • - {% if book.has_mp3_file %} + {% if related.media.mp3 or related.media.ogg %} {% trans "Listen" %} {% endif %}
+ {% block book-box-extra-info %}{% endblock %} {% block box-append %} {% endblock %} +