Small refactor in messaging.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_text.html
index b0e2f9c..c0fe955 100644 (file)
@@ -1,7 +1,9 @@
 {% extends "catalogue/viewer_base.html" %}
 {% load i18n %}
 {% load catalogue_tags %}
+{% load chunks %}
 {% load thumbnail %}
+{% load annoy_banners from annoy %}
 
 
 {% block title %}{{ book.pretty_title }}{% endblock %}
@@ -60,7 +62,7 @@
 {% block big-pane %}
 
   <article id="main-text">
-    {{ book.html_file.read|safe }}
+    {{ book_text|safe }}
   </article>
 
   <article id="other-text">
   <div class="box" id="book-short">
     {% include 'catalogue/book_short.html' %}
   </div>
+
+  <div id="annoy-stubs">
+    {% annoy_banners 'book-text-intermission' %}
+
+    {% for insert in inserts %}
+      {% include 'annoy/dynamic_insert.html' %}
+    {% endfor %}
+  </div>
 {% endblock footer %}