X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..d1d6ea8ed2889f871b6d89d4fae6021f286f921a:/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 b87e9eb1f..ecae89e82 100644
--- a/src/catalogue/templates/catalogue/book_detail.html
+++ b/src/catalogue/templates/catalogue/book_detail.html
@@ -1,8 +1,9 @@
-{% extends "base.html" %}
+{% extends "base/base.html" %}
{% load i18n %}
{% load common_tags catalogue_tags %}
{% load ssify %}
{% load build_absolute_uri from fnp_common %}
+{% load cache %}
{% block titleextra %}{{ book.pretty_title }}{% endblock %}
{% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
@@ -11,66 +12,77 @@
{% 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 %}
- {% 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 %}
+{% block extrahead %}
+{{ block.super }}
+{% if request.path == '/katalog/lektura/pan-tadeusz/' %}
+{% include "hotjar.html" %}
{% endif %}
-{% endwith %}
-
-
-
-{% trans "Information about the work" %}
-{% for tag in tags %}
-
-{% 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 %}
-
-
+{% endblock %}
+{% 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 %}
+ {% 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 author in book.authors %}
+
+ {% endfor %}
+
+
+ {% if extra_info.source_url %}
+
+
{% trans "Source" %} {% trans "of the book" %}
+ {% trans "in" %} {% source_name extra_info.source_url %}
+
+ {% endif %}
+ {% if book|status:user != 'closed' %}
+
+ {% endif %}
+ {% if extra_info.about and not hide_about %}
+
+ {% endif %}
+ {% if book.wiki_link %}
+
+ {% endif %}
+
{% endblock %}