X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6c9c6aa32a1b986128d7e5c2547d22d7a9f8d943..4db71d02697f83eac393bdf34fbe1aff54757df4:/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 fff3fc0ff..25c130908 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 %} @@ -21,13 +22,15 @@
{% 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 %} @@ -70,12 +73,14 @@ {% endfor %} - {% if book.extra_info.location %} - - {% trans "Region" %}:  - {{ book.extra_info.location }} - - {% endif %} + {% with extra_info=book.get_extra_info_json %} + {% if extra_info.location %} + + {% trans "Region" %}:  + {{ extra_info.location }} + + {% endif %} + {% endwith %} {% if book.is_foreign %} @@ -94,13 +99,16 @@ {% endif %} {% endwith %}
+ {% endcache %}
{% book_shelf_tags book.pk %} + {% cache 86400 book_box_tools book.pk book|status:request.user LANGUAGE_CODE %} {% if book|status:request.user != 'closed' %} {% else %} -

{% trans "For now this work is only available for our subscribers." %}

+ {% 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 %} {% 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 %}