X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/6a41571eecb01fc448e4d5d6a9d3059523988f18..af43a678694121f8b7c81a52a64d02c1b024fc57:/src/catalogue/templates/catalogue/book_detail.html diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index eeecbf08a..d2bfda7e4 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -2,6 +2,7 @@ {% load i18n %} {% load catalogue_tags %} {% load build_absolute_uri from fnp_common %} +{% load annoy_banner from annoy %} {% load cache %} {% block titleextra %}{{ book.pretty_title }}{% endblock %} @@ -11,13 +12,6 @@ {% block bodyid %}book-detail{% endblock %} -{% block extrahead %} -{{ block.super }} -{% if request.path == '/katalog/lektura/pan-tadeusz/' %} -{% include "hotjar.html" %} -{% endif %} -{% endblock %} - {% block body %} {% include 'catalogue/book_wide.html' %} @@ -34,6 +28,8 @@ {% endif %} + {% annoy_banner 'book-page' %} +

{% trans "See also" %}:

{% related_books book taken=book.other_versions|length %} @@ -60,12 +56,20 @@ {% endfor %} - {% if extra_info.source_url %} -
- {% trans "Source" %} {% trans "of the book" %} - {% trans "in" %} {% source_name extra_info.source_url %} -
- {% endif %} + {% with extra_info=book.get_extra_info_json %} + {% for source_url in extra_info.source_urls %} +
+ {% trans "Source" %} {% trans "of the book" %} + {% trans "in" %} {% source_name source_url %} +
+ {% empty %} + {% if extra_info.source_url %} +
+ {% trans "Source" %} {% trans "of the book" %} + {% trans "in" %} {% source_name extra_info.source_url %} +
+ {% endif %} + {% endfor %} {% if book|status:user != 'closed' %}
{% trans "Source XML file" %}
{% endif %} @@ -82,5 +86,6 @@
{% trans "Mix this book" %}
+{% endwith %} {% endblock %}