X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9574b970bdd6e28fc6178b736e8e17dfca15fd4e..94a4fcc7ab9e1713dc2defc8b35c875fc90f6fa5:/src/catalogue/templates/catalogue/book_short.html diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 1df91ca42..133ed0cd6 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -1,5 +1,6 @@ {% spaceless %} {% load i18n %} + {% load thumbnail %} {% load cache %} {% load catalogue_tags %} {% load book_shelf_tags from social_tags %} @@ -10,10 +11,6 @@
- {% block book-box-pre %} - {% include "catalogue/snippets/like_button.html" %} - {% endblock %} - {% with book.tags_by_category as tags %}
@@ -21,9 +18,9 @@ {% endblock %}
- {% if book.cover_thumb %} + {% if book.cover_clean %} - Cover + Cover {% endif %} {% block cover-area-extra %}{% endblock %} @@ -117,33 +114,32 @@ {% endif %}
  • - {% trans "Download" %}:
    + {% trans "Download an ebook" %}:
    {% if book.pdf_file %} - PDF + PDF {% endif %} {% if book.epub_file %} - EPUB + EPUB {% endif %} {% if book.mobi_file %} - MOBI + MOBI + {% endif %} + {% if book.fb2_file %} + FB2 {% endif %} - {% if book.has_audio %} - MP3 + {% if book.txt_file %} + TXT {% endif %} - {% trans "more" %} - - {% if book.fb2_file %} - FB2 - {% endif %} - {% if book.txt_file %} - TXT - {% endif %} - {% download_audio book mp3=False %} -
    +
    + {% if book.has_mp3_file %} +
    + {% trans "Download audiobook" %}:
    + {% download_audio book %} +
    + {% endif %} +
    {% custom_pdf_link_li book %} - {% trans "less" %} -
  • @@ -151,7 +147,7 @@ {% block preview-info %}

    {% trans "For now this work is only available for our subscribers." %} - Dołącz do Towarzystwa Przyjaciół Wolnych Lektur + Wspieraj Wolne Lektury

    {% content_warning book %}
    {% endblock %} @@ -162,13 +158,6 @@
    {% endwith %} - {% block right-column %} - {% if audiobooks %}{% if book|status:request.user != 'closed' %} -
    - {% include 'catalogue/snippets/jplayer.html' %} -
    - {% endif %}{% endif %} - {% endblock %} {% if book.abstract %}
    {{ book.abstract|safe }}