Using cache middleware instead of various caching micro-strategies,
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_detail.html
index 454bce1..398a43c 100644 (file)
@@ -1,6 +1,8 @@
 {% extends "base.html" %}
 {% load i18n %}
 {% load common_tags catalogue_tags %}
+{% load ssify %}
+{% load build_absolute_uri from fnp_common %}
 
 {% block titleextra %}{{ book.pretty_title }}{% endblock %}
 {% block ogimage %}{% if book.cover %}{{ book.cover.url|build_absolute_uri:request }}{% endif %}{% endblock %}
@@ -11,7 +13,7 @@
 
 {% block body %}
 
-{% book_wide book %}
+{% ssi_include 'catalogue_book_wide' pk=book.pk %}
 
 {% work_list book_children %}
 
@@ -20,7 +22,7 @@
 <section class="see-also" style="display: inline-block;">
 <h1>{% trans "Other versions" %}:</h1>
 {% for rel in book.other_versions %}
-    {% book_mini rel %}
+    {% ssi_include 'book_mini' pk=rel.pk %}
 {% endfor %}
 </section>
 {% endif %}