X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/0a02421dd593f0466226b9defc33337cdbf672ef..d5a4e2346ceaa436eb64372ad099ebbffd78db2e:/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 865aca2bb..d2bfda7e4 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -1,8 +1,8 @@ {% extends "base/base.html" %} {% load i18n %} -{% load common_tags catalogue_tags %} -{% load ssify %} +{% load catalogue_tags %} {% load build_absolute_uri from fnp_common %} +{% load annoy_banner from annoy %} {% load cache %} {% block titleextra %}{{ book.pretty_title }}{% endblock %} @@ -12,6 +12,7 @@ {% block bodyid %}book-detail{% endblock %} + {% block body %} {% include 'catalogue/book_wide.html' %} @@ -22,14 +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 %} - {#% ssi_include 'catalogue_book_mini' pk=rel.pk %#} + {{ rel.mini_box }} {% endfor %} {% endif %} + {% annoy_banner 'book-page' %} + {% trans "See also" %}: {% related_books book taken=book.other_versions|length %} @@ -48,18 +48,28 @@ {% for author in book.authors %} - {% ssi_include 'catalogue_tag_box' pk=author.pk %} + {% cache 86400 catalogue_tag_box author.pk %} + {% include 'catalogue/tag_box.html' with tag=author %} + {% endcache %} {% 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 %} @@ -76,5 +86,6 @@ {% trans "Mix this book" %} +{% endwith %} {% endblock %}