X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0..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 308318161..d2bfda7e4 100644
--- a/src/catalogue/templates/catalogue/book_detail.html
+++ b/src/catalogue/templates/catalogue/book_detail.html
@@ -1,8 +1,8 @@
-{% extends "base.html" %}
+{% 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,69 +12,80 @@
{% block bodyid %}book-detail{% endblock %}
-{% block body %}
-
-{% ssi_include 'catalogue_book_wide' pk=book.pk %}
-
-{% work_list book_children %}
-
-{% spaceless %}
-{% if book.other_versions %}
-
-{% 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 %#}
-{% endfor %}
-
-{% endif %}
-
-
-{% trans "See also" %}:
-{% related_books book taken=book.other_versions|length %}
-
-{% endspaceless %}
-
-
-{% with book.related_themes as themes %}
-{% if themes %}
-
{% trans "Themes" %}
- {% plain_list themes book=book %}
-{% endif %}
-{% endwith %}
-
-
-
-{% trans "Information about the work" %}
-{% for tag in tags %}
+{% block body %}
+ {% include 'catalogue/book_wide.html' %}
+
+ {% work_list book_children %}
+
+ {% spaceless %}
+ {% if book.other_versions %}
+
+ {% trans "Other versions" %}:
+ {% for rel in book.other_versions %}
+ {{ rel.mini_box }}
+ {% endfor %}
+
+ {% endif %}
+
+ {% annoy_banner 'book-page' %}
+
+
+ {% trans "See also" %}:
+ {% related_books book taken=book.other_versions|length %}
+
+ {% endspaceless %}
+
+ {% with book.related_themes as themes %}
+ {% if themes %}
+ {% trans "Themes" %}
+ {% plain_list themes book=book %}
+ {% endif %}
+ {% endwith %}
+
+
+ {% trans "Information about the work" %}
+ {% for author in book.authors %}
+
+ {% endfor %}
+
+
+ {% with extra_info=book.get_extra_info_json %}
+ {% for source_url in extra_info.source_urls %}
+
+ {% empty %}
+ {% if extra_info.source_url %}
-{% endfor %}
-
-
- {% if extra_info.source_url %}
- {% trans "Source" %} {% trans "of the book" %}
- {% trans "in" %} {% source_name extra_info.source_url %}
- {% endif %}
-
- {% if extra_info.about and not hide_about %}
-
- {% endif %}
- {% if book.gazeta_link %}
-
{% endif %}
- {% if book.wiki_link %}
-
- {% endif %}
-
-
-
-
+ {% endfor %}
+ {% if book|status:user != 'closed' %}
+
+ {% endif %}
+ {% if extra_info.about and not hide_about %}
+
+ {% endif %}
+ {% if book.wiki_link %}
+
+ {% endif %}
+
+{% endwith %}
{% endblock %}