X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/2856ae6ae36213ca7997366e0c7790e3c855e62f..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 96ceaa6c6..b069cb585 100644 --- a/apps/catalogue/templates/catalogue/book_short.html +++ b/apps/catalogue/templates/catalogue/book_short.html @@ -1,38 +1,25 @@ +{% spaceless %} {% load i18n %} -{% load catalogue_tags social_tags %} -{% load thumbnail %} +{% load catalogue_tags ssify %} +{% load likes_book book_shelf_tags from social_tags %}
-
+
+
-
- {% if book.cover %} - {% if main_link %}{% endif %} - Cover - {% if main_link %}{% endif %} - {% endif %} - {% block cover-area-extra %}{% endblock %} -
-
+{% likes_book book.pk as likes %} +
- {% csrf_token %} + {% ssi_csrf_token %}
@@ -40,85 +27,109 @@
-
- {% 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_thumb %} + {% if main_link %}{% endif %} + 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 %}
  • {% if book.html_file %} - {% trans "Read online" %} + {% trans "Read online" %} {% endif %}
  • - {% 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 %} + {% 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 related.media.mp3 or related.media.ogg %} - {% trans "Listen" %} + {% if has_audio %} + {% trans "Listen" %} {% endif %}
{% block book-box-extra-info %}{% endblock %} {% block box-append %} {% endblock %} +
{% block right-column %} {% endblock %}
+{% endspaceless %} \ No newline at end of file