1 {% extends "base.html" %}
5 {% load catalogue_tags %}
12 {% block title %}{{ book.pretty_title }}{% endblock %}
16 <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
17 integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
19 <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
20 integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
21 crossorigin=""></script>
27 <a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
28 <span class="label">{% trans "Kliknij, by pobrać" %}:</span>
29 <img src="{% if book.cover_clean %}{% thumbnail book.cover_clean '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_clean.url }}{% endthumbnail %}{% endif %}"
30 width="120" height="166"
31 alt="{{ book.pretty_title }}"
32 title="{{ book.pretty_title }}">
36 {% if book.other_versions.exists %}
38 <a href="#" data-box="other">
39 <span class="label">{% trans "Inne wersje" %}</span>
44 {% if extra_info.logo_mono %}
45 {% thumbnail extra_info.logo_mono '200x200' as th %}
46 <img src="{{ th.url }}" style="width: 100px; padding: 10px;"
47 alt="{{ extra_info.logo_alt|default:'Sponsor' }}"
58 {% block breadcrumb-right %}
59 <div class="l-text_toolbar" id="menu">
60 <a href="#info" data-box="info">
61 <img src="{% static '2022/images/about.svg' %}" alt="{% trans "Informacje" %}">
64 <a href="#" data-box="settings" style="display: none;">
65 <img src="{% static '2022/images/settings.svg' %}" alt="{% trans "Ustawienia" %}">
68 <a href="#wltoc" data-box="wltoc" style="display: none;">
69 <img src="{% static '2022/images/toc.svg' %}" alt="{% trans "Spis treści" %}">
75 <div id="info" class="box">
80 <div id="settings" class="box">
81 <a href="#" class="settings-switch" id="settings-line-numbers"
82 data-setting="always-hide-line-numbers"><span>{% trans "Numeracja" %}</span></a>
83 <a href="#" class="settings-switch" id="settings-themes"
84 data-setting="always-hide-themes"><span>{% trans "Motywy" %}</span></a>
85 <a href="#" class="settings-switch" id="settings-annotations"
86 data-setting="no-annotations"><span>{% trans "Przypisy" %}</span></a>
87 <a href="#" class="settings-switch" id="settings-references"
88 data-setting="no-references"><span>{% trans "Pinezki" %}</span></a>
92 <div id="wltoc" class="box">
94 {% for b in book.ancestors %}
95 {% if forloop.counter > 1 %}
98 <a href="{% if b.html_file %}{% url 'book_text' b.slug %}{% else %}{{ b.get_absolute_url }}{% endif %}">{{ b.title }}</a>
101 {% for b in book.get_siblings %}
104 <strong>{{ b.title }}</strong>
105 <div id="heretoc"></div>
107 <a href="{% url 'book_text' b.get_first_text.slug %}">{{ b.title }}</a>
112 {% for b in book.ancestor.all %}
114 {% if not forloop.counter.last %}
119 <strong>{{ book.title }}</strong>
120 <div id="heretoc"></div>
122 {% for c in book.get_children %}
123 <li><a href="{% url 'book_text' c.get_first_text.slug %}">{{ c.title }}</a></li>
136 <div id="global-progress" class="l-container" data-t="{{ book.get_time }}">
138 <span class="piece" style="flex-grow: 100;">
139 <span class="filled"></span>
142 <div class="progress-text">
143 Szacowany czas do końca: <span class="progress-text-value">-</span>
147 <header class="l-text_header">
148 <img class="l-text_header_cover" src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}">
150 <div class="l-text_header__content">
151 <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 %}
153 <h1 class="l-text_header_title"><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
154 {% if book.translators.exists %}
155 <p class="l-header__translators">
156 {% for translator in book.translators.all %}
157 {% if forloop.first and translator.name != 'tłumacz nieznany' %}
160 <a href="{{ translator.get_absolute_url }}">
161 {{ translator }}</a>{% if not forloop.last %}, {% endif %}
165 <div style="margin-top:1em;">
166 {% content_warning book %}
169 {#% annoy_banner 'book-start' %#}
171 <div id="book-text-buttons">
178 <article id="main-text" {% if book.has_sync_file %}class="has-sync"{% endif %}>
180 {% if book.other_versions.exists %}
181 <div class="box" id="other">
182 <h2>{% trans "Inne wersje tekstu" %}</h2>
183 <a class="other-text-close" href="#">{% trans "Zamknij drugą wersję" %}</a>
186 {% for other_version in book.other_versions %}
188 <a class="display-other"
189 data-other="{{ other_version.html_url }}"
190 href="{% url 'book_text' other_version.slug %}">
191 {{ other_version.mini_box_nolink }}
201 {% with next=book.get_next_text prev=book.get_prev_text %}
203 <a class="text_next-book" href="{% url 'book_text' next.slug %}">{{ next.title }} →</a>
206 <a class="text_prev-book" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
208 <div class="main-text-body">
212 <div class="l-checkout__box" style="margin: 2em 0;">
213 {% include 'club/donation_step1_form.html' with form=donation_form %}
222 <article id="other-text">
223 <a class="other-text-close" href="#">{% trans "Zamknij" %}</a>
224 <div id="other-text-waiter">{% trans "Proszę czekać..." %}</div>
225 <div id="other-text-body" style="display: none;"></div>
228 <div id="reference-box">
229 <div id="reference-map"></div>
230 <a id="reference-close" href="#">x</a>
231 <div id="reference-images">
233 <a id="reference-link" target="_blank"></a>
236 <div id="annotation-box"
237 data-default-leftoffset="40"
239 <div id="annotation">
240 <div id="annotation-content"></div>
241 <a id="footnote-link">Czytaj w przypisie dolnym</a>
243 <div class="pointer pointer-bottom"></div>
244 <div class="pointer pointer-top"></div>
247 <div id="qbox" class="qbox"
248 data-attach-bottom="true"
250 <div class="content">
251 <a class="qbox-t-link" href="" title="Skopiuj link"><img src="{% static '2022/images/tool-link.svg' %}" alt="Skopiuj link"></a>
252 <a class="qbox-t-copy" href="" title="Skopiuj cytat"><img src="{% static '2022/images/tool-copy.svg' %}" alt="Skopiuj cytat"></a>
253 {% if request.user.is_authenticated %}
254 <a class="qbox-t-quote" href="" title="Zapisz cytat"><img src="{% static '2022/images/tool-quote.svg' %}" alt="Zapisz cytat"></a>
257 <div class="pointer pointer-bottom"></div>
258 <div class="pointer pointer-top"></div>
261 <div id="zakladka" class="zakladka">
263 <img style="height: 30px;" class="icon-empty" src="{% static '2022/images/zakladka.svg' %}" alt="Zakładka">
264 <img class="icon-exists" src="{% static '2022/images/zakladka-full.svg' %}" alt="Istniejąca zakładka">
265 <img class="icon-note" src="{% static '2022/images/zakladka-note.svg' %}" alt="Notka">
267 <div id="zakladka-box">
268 <div class="content">
269 {% if request.user.is_authenticated %}
270 <div class="zakladka-tool zakladka-tool_zakladka_delete">
273 <div class="zakladka-tool zakladka-tool_zakladka">
276 <div class="zakladka-tool zakladka-tool_sluchaj">
277 Słuchaj od tego miejsca
279 <div class="zakladka-tool_notka_text">
280 <textarea placeholder="Notatka"></textarea>
281 <svg height="16" width="16" xmlns="http://www.w3.org/2000/svg" id="notka-save">
282 <circle r="7" cx="8" cy="8" fill="none" stroke="black" stroke-width="2px" stroke-dasharray="1,1" />
284 <img src="{% static '2022/images/notka-saved.svg' %}" id="notka-saved">
288 <div class="zakladka-tool zakladka-tool_login">
289 <a href="{% url 'login' %}?next={{ request.path }}">
292 <a href="{% url 'register' %}?next={{ request.path }}"> Załóż konto
295 <div class="zakladka-tool zakladka-tool_sluchaj">
296 Słuchaj od tego miejsca
302 <div class="pointer pointer-bottom"></div>
303 <div class="pointer pointer-top"></div>
309 <div id="annoy-stubs">
310 {% annoy_banners 'book-text-intermission' %}
312 {% for insert in inserts %}
313 {% include 'annoy/dynamic_insert.html' %}
321 {% if book.has_sync_file %}
322 <div id="player-bar">
323 {% include 'catalogue/snippets/jplayer_reader.html' %}
325 <script type="application/json" id="smil">
326 {{ book.get_sync|safe }}
336 <script type="application/json" id="interesting-references">
338 {% for ref in book.references %}
339 {% if ref.entity.is_interesting %}
340 "{{ ref.entity.uri }}": {
341 {% if ref.entity.lat and ref.entity.lon %}
342 "location": [{{ ref.entity.lat }}, {{ ref.entity.lon }}],
344 "images": {{ ref.entity.images|safe }},
345 "label": "{{ ref.entity.label }}",
346 "description": "{{ ref.entity.description }}",
347 "wikipedia_link": "{{ ref.entity.wikipedia_link }}"