X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0a02421dd593f0466226b9defc33337cdbf672ef..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 4f186e8ff..cc2744361 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -22,7 +22,7 @@
{% if book.cover_thumb %} - + Cover {% endif %} @@ -73,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 %} @@ -106,6 +108,7 @@ {% 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 %} @@ -154,11 +158,11 @@ {% 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 %}