X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/68dbe44bdbc497a82064c6a47eeaecbb34463f64..82c3054bcdeb000aa9782da80d644070797b5cbe:/apps/catalogue/templates/catalogue/book_short.html diff --git a/apps/catalogue/templates/catalogue/book_short.html b/apps/catalogue/templates/catalogue/book_short.html index 4acefe285..b069cb585 100644 --- a/apps/catalogue/templates/catalogue/book_short.html +++ b/apps/catalogue/templates/catalogue/book_short.html @@ -1,6 +1,7 @@ +{% spaceless %} {% load i18n %} -{% load catalogue_tags social_tags %} -{% load thumbnail %} +{% load catalogue_tags ssify %} +{% load likes_book book_shelf_tags from social_tags %}
@@ -11,15 +12,14 @@
-
+{% likes_book book.pk as likes %} +
- {% csrf_token %} + {% ssi_csrf_token %}
@@ -28,63 +28,68 @@
- {% for tag in related.tags.author %} - {% related_tag_name tag %}{% if not forloop.last %}, - {% endif %}{% endfor %}{% for title, slug in related.parents %}, - {{ title }}{% endfor %} + {% for tag in tags.author %} + {{ tag.name }}{% if not forloop.last %}, + {% endif %}{% endfor %}{% for parent in parents %}, + {{ parent.title }}{% endfor %}
- {% if main_link %}{% endif %} - {{ book.title }} - {% if main_link %}{% endif %} -
+ {% if main_link %}{% endif %}{{ book.title }}{% if main_link %}{% endif %} +
- {% if book.cover %} + {% if book.cover_thumb %} {% if main_link %}{% endif %} - Cover + Cover {% if main_link %}{% endif %} {% endif %} {% block cover-area-extra %}{% endblock %}
- {% spaceless %} + {% spaceless %} {% trans "Epoch" %}:  - {% for tag in related.tags.epoch %} - {% related_tag_name tag %} - {% if not forloop.last %}, {% endif %} + {% for tag in tags.epoch %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %} {% trans "Kind" %}:  - {% for tag in related.tags.kind %} - {% related_tag_name tag %} - {% if not forloop.last %}, {% endif %} + {% for tag in tags.kind %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %} {% trans "Genre" %}:  - {% for tag in related.tags.genre %} - {% related_tag_name tag %} - {% if not forloop.last %}, {% endif %} + {% for tag in tags.genre %} + {{ tag.name }} + {% if not forloop.last %}, {% endif %} {% endfor %} + {% if show_lang %} + + {% trans "Language" %}:  + {{ book.language_name }} + + {% endif %} + + {% if stage_note %} +
+ {{ stage_note }} + + {% endif %} + {% endspaceless %}
- {% shelf_tags book %} + {% book_shelf_tags book.pk %}
  • @@ -95,25 +100,25 @@
  • {% trans "Download" %}
    - {% if book.pdf_file %} - PDF {% trans "to print" %} - {% endif %} - {% if book.epub_file %} - EPUB {% trans "for an e-book reader" %} - {% endif %} - {% if book.mobi_file %} - MOBI {% trans "for Kindle" %} - {% endif %} - {% if book.fb2_file %} - FB2 {% trans "FictionBook" %} - {% endif %} - {% if book.txt_file %} - TXT {% trans "for advanced usage" %} - {% endif %} + {% if book.pdf_file %} + PDF {% trans "to print" %} + {% endif %} + {% if book.epub_file %} + EPUB {% trans "for an e-book reader" %} + {% endif %} + {% if book.mobi_file %} + MOBI {% trans "for Kindle" %} + {% endif %} + {% if book.fb2_file %} + FB2 {% trans "FictionBook" %} + {% endif %} + {% if book.txt_file %} + TXT {% trans "for advanced usage" %} + {% endif %}
  • - {% if related.media.mp3 or related.media.ogg %} + {% if has_audio %} {% trans "Listen" %} {% endif %}
  • @@ -127,3 +132,4 @@
+{% endspaceless %} \ No newline at end of file