+{% endblock %}
+
+
+
+
+{% block main %}
+ <div id="global-progress" class="l-container" data-t="{{ book.get_time }}">
+ <div class="bar">
+ <span class="piece" style="flex-grow: 100;">
+ <span class="filled"></span>
+ </span>
+ </div>
+ <div class="progress-text">
+ Szacowany czas do końca: <span class="progress-text-value">-</span>
+ </div>
+ </div>
+
+ <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>
+ {% if book.translators.exists %}
+ <p class="l-header__translators">
+ {% for translator in book.translators.all %}
+ {% if forloop.first and translator.name != 'tłumacz nieznany' %}
+ {% trans "tłum." %}
+ {% endif %}
+ <a href="{{ translator.get_absolute_url }}">
+ {{ translator }}</a>{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ </p>
+ {% endif %}
+ <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">