X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/c742d70c5285e01898721fc1a5ffe236781c7828..cafca91e28661f24abbcda91c733de7e77d16e86:/src/catalogue/templates/catalogue/book_detail.html?ds=sidebyside diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index a5be89bad..d2bfda7e4 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -1,7 +1,8 @@ {% extends "base/base.html" %} {% load i18n %} -{% load common_tags catalogue_tags %} +{% 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' %} @@ -29,13 +23,13 @@

{% trans "Other versions" %}:

{% for rel in book.other_versions %} - {% cache 86400 book_mini_box rel.pk %} - {% include 'catalogue/book_mini_box.html' with book=rel %} - {% endcache %} + {{ rel.mini_box }} {% endfor %}
{% endif %} + {% annoy_banner 'book-page' %} +

{% trans "See also" %}:

{% related_books book taken=book.other_versions|length %} @@ -54,7 +48,7 @@ {% for author in book.authors %}
- {% cache 86400 catalogue_tag_box rel.pk %} + {% cache 86400 catalogue_tag_box author.pk %} {% include 'catalogue/tag_box.html' with tag=author %} {% endcache %} @@ -62,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' %} {% endif %} @@ -84,5 +86,6 @@ +{% endwith %} {% endblock %}