+ </header>
+
+
+ <article id="main-text">
+ {% with next=book.get_next_text prev=book.get_prev_text %}
+ {% if next %}
+ <a class="text_next-book" href="{% url 'book_text' next.slug %}">{{ next.title }} →</a>
+ {% endif %}
+ {% if prev %}
+ <a class="text_prev-book" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
+ {% endif %}
+ {{ book_text|safe }}
+ {% endwith %}
+
+
+
+
+
+
+ <article id="other-text">
+ <a class="other-text-close" href="#">{% trans "Zamknij" %}</a>
+ <div id="other-text-waiter">{% trans "Proszę czekać..." %}</div>
+ <div id="other-text-body" style="display: none;"></div>
+ </article>
+
+ <div id="reference-box">
+ <div id="reference-map"></div>
+ <a id="reference-close" href="#">x</a>
+ <div id="reference-images">
+ </div>
+ <a id="reference-link" target="_blank"></a>
+ </div>
+
+
+ {% if book.other_versions.exists %}
+ <div class="box" id="other">
+ <h2>{% trans "Inne wersje utworu" %}</h2>
+ <a class="other-text-close" href="#">{% trans "Zamknij drugą wersję" %}</a>
+ <ul>
+ {% spaceless %}
+ {% for other_version in book.other_versions %}
+ <li>
+ <a class="display-other"
+ data-other="{{ other_version.html_url }}"
+ href="{% url 'book_text' other_version.slug %}">
+ {{ other_version.mini_box_nolink }}
+ </a>
+ </li>
+ {% endfor %}
+ {% endspaceless %}
+ </ul>
+ </div>
+ {% endif %}
+
+ <div id="annoy-stubs">
+ {% annoy_banners 'book-text-intermission' %}
+
+ {% for insert in inserts %}
+ {% include 'annoy/dynamic_insert.html' %}
+ {% endfor %}
+ </div>
+
+ </article>
+
+
+
+ {% if book.has_sync_file %}
+ <div id="player-bar">
+ {% include 'catalogue/snippets/jplayer_reader.html' %}
+ </div>
+ <script type="application/json" id="smil">
+ {{ book.get_sync|safe }}
+ </script>