+
+ <header class="l-text_header">
+ <img class="l-text_header_cover" src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}">
+
+ <div class="l-text_header__content">
+ <p class="l-text_header_author">{% for author in book.authors %}<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
+ </p>
+ <h1 class="l-text_header_title"><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
+ {% with translators=book.translators %}
+ {% if translators %}
+ <p class="l-header__translators">
+ {% if translators.0 != 'tłumacz nieznany' %}
+ {% trans "tłum." %}
+ {% endif %}
+ {% for translator in translators %}
+ {{ translator }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ </p>
+ {% endif %}
+ {% endwith %}
+ <div style="margin-top:1em;">
+ {% content_warning book %}
+ </div>
+
+ </div>
+ </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>
+ {% endif %}
+
+
+ <div id="marker">
+
+ </div>
+
+ {% localize off %}
+ <script type="application/json" id="interesting-references">
+ {
+ {% for ref in book.references %}
+ {% if ref.entity.is_interesting %}
+ "{{ ref.entity.uri }}": {
+ {% if ref.entity.lat and ref.entity.lon %}
+ "location": [{{ ref.entity.lat }}, {{ ref.entity.lon }}],
+ {% endif %}
+ "images": {{ ref.entity.images|safe }},
+ "label": "{{ ref.entity.label }}",
+ "description": "{{ ref.entity.description }}",
+ "wikipedia_link": "{{ ref.entity.wikipedia_link }}"
+ },
+ {% endif %}
+ {% endfor %}
+ "": null
+ }
+ </script>
+
+ {% endlocalize %}
+
+{% endblock main %}