X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbdd1449a656f4c62055926d1531be95c2e6e66b..afa132c391c153f4aa51e5ccdd9b3e32d4b6a3e3:/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 24d93d068..cc2744361 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 cache %} {% load catalogue_tags %} {% load book_shelf_tags from social_tags %} {% load static %} @@ -19,6 +20,17 @@ {% block book-box-body-pre %} {% endblock %} +
+ {% if book.cover_thumb %} + + Cover + + {% endif %} + {% block cover-area-extra %}{% endblock %} +
+ + {% get_current_language as LANGUAGE_CODE %} + {% cache 86400 book_box_head_tags book.pk LANGUAGE_CODE %}
{% for tag in tags.author %} @@ -36,15 +48,6 @@ {% endif %}
-
- {% if book.cover_thumb %} - - Cover - - {% endif %} - {% block cover-area-extra %}{% endblock %} -
-
{% trans "Epoch" %}:  @@ -70,6 +73,15 @@ {% endfor %} + {% with extra_info=book.get_extra_info_json %} + {% if extra_info.location %} + + {% trans "Region" %}:  + {{ extra_info.location }} + + {% endif %} + {% endwith %} + {% if book.is_foreign %} {% trans "Language" %}:  @@ -87,55 +99,76 @@ {% endif %} {% endwith %}
+ {% endcache %}
{% book_shelf_tags book.pk %} - + +
  • +
    + {% if book.pdf_file %} + PDF + {% endif %} + {% if book.epub_file %} + EPUB + {% endif %} + {% if book.mobi_file %} + MOBI + {% endif %} + {% if book.fb2_file %} + FB2 + {% endif %} + {% if book.txt_file %} + TXT + {% endif %} +
    +
    + {% download_audio book %} +
    +
    + {% custom_pdf_link_li book %} +
    +
  • + + {% else %} + {% block preview-info %} +

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

    +
    {% content_warning book %}
    + {% endblock %} + {% endif %} + {% endcache %} {% block book-box-extra-info %}{% endblock %} - {% block box-append %} - {% endblock %} + {% block box-append %}{% endblock %} {% endwith %} {% block right-column %} - {% if audiobooks %} -
    + {% if audiobooks %}{% if book|status:request.user != 'closed' %} +
    {% include 'catalogue/snippets/jplayer.html' %}
    - {% endif %} + {% endif %}{% endif %} {% endblock %} + {% if book.abstract %} +
    + {{ book.abstract|safe }} +
    + {% endif %}