X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0a02421dd593f0466226b9defc33337cdbf672ef..e89f0663d3ef7ccbf2b51e400430695fb2421b6f:/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 %}
-
+
{% 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 %}