1 {% extends "catalogue/viewer_base.html" %}
3 {% load catalogue_tags %}
6 {% load annoy_banners from annoy %}
9 {% block title %}{{ book.pretty_title }}{% endblock %}
13 <link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css"
14 integrity="sha512-xodZBNTC5n17Xt2atTPuE1HxjVMSvLVW9ocqUKLsCC5CXdbqCmblAshOMAS6/keqq/sMZMZ19scR4PsZChSR7A=="
16 <script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"
17 integrity="sha512-XQoYMqMTK8LvdxXYG3nZ448hOEQiglfqkJs1NOQV44cWnUrBc8PkAOcXy20w0vlaXaVUearIOBhiXZ5V3ynxwA=="
18 crossorigin=""></script>
23 <a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
24 <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
25 width="120" height="166"
26 alt="{{ book.pretty_title }}"
27 title="{{ book.pretty_title }}">
31 {% if book.other_versions.exists %}
33 <a href="#" data-box="other">
34 <span class="label">{% trans "Other versions" %}</span>
40 <a href="#" data-box="wltoc">
41 <span class="label">{% trans "Table of contents" %}</span>
46 <a href="#" data-box="themes">
47 <span class="label">{% trans "Themes" %}</span>
51 <li id="menu-nota_red">
52 <a href="#" data-box="nota_red">
53 <span class="label">{% trans "Edit. note" %}</span>
58 <a href="#info" data-box="info">
59 <span class="label">{% trans "Infobox" %}</span>
63 <a href="#" class="settings-switch" id="settings-line-numbers"
64 data-setting="always-hide-line-numbers"><span>{% trans "Numbering" %}</span></a>
65 <a href="#" class="settings-switch" id="settings-themes"
66 data-setting="always-hide-themes"><span>{% trans "Themes" %}</span></a>
67 <a href="#" class="settings-switch" id="settings-annotations"
68 data-setting="no-annotations"><span>{% trans "Footnotes" %}</span></a>
69 <a href="#" class="settings-switch" id="settings-references"
70 data-setting="no-references"><span>{% trans "References" %}</span></a>
77 <article id="main-text">
78 {% with next=book.get_next_text prev=book.get_prev_text %}
80 <a style="float:right; padding: 1em;" href="{% url 'book_text' next.slug %}">{{ next.title }} →</a>
83 <a style="display:inline-block;padding: 1em;" href="{% url 'book_text' prev.slug %}">← {{ prev.title }}</a>
85 <div style="text-align:center; margin-top:1em;">
86 {% content_warning book %}
88 <div style="clear:both;"></div>
95 <article id="other-text">
96 <a class="other-text-close" href="#">{% trans "Close" %}</a>
97 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
98 <div id="other-text-body" style="display: none;"></div>
101 <div id="reference-box">
102 <div id="reference-map"></div>
103 <a id="reference-close" href="#">x</a>
104 <div id="reference-images">
106 <a id="reference-link" target="_blank"></a>
111 {% endblock big-pane %}
114 <div id="wltoc" class="box">
116 {% for b in book.ancestor.all %}
117 {% if forloop.counter > 1 %}
120 <a href="{{ b.get_absolute_url }}">{{ b.title }}</a>
123 {% for b in book.get_siblings %}
126 <strong>{{ b.title }}</strong>
127 <div id="heretoc"></div>
129 <a href="{% url 'book_text' b.get_first_text.slug %}">{{ b.title }}</a>
134 {% for b in book.ancestor.all %}
136 {% if not forloop.counter.last %}
141 <strong>{{ book.title }}</strong>
142 <div id="heretoc"></div>
146 <div id="info" class="box">
150 {% if book.other_versions.exists %}
151 <div class="box" id="other">
152 <h2>{% trans "Other versions of the book" %}</h2>
153 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
156 {% for other_version in book.other_versions %}
158 <a class="display-other"
159 data-other="{{ other_version.html_url }}"
160 href="{% url 'book_text' other_version.slug %}">
161 {{ other_version.mini_box_nolink }}
170 <div class="box" id="book-short">
171 {% include 'catalogue/book_short.html' %}
174 <div id="annoy-stubs">
175 {% annoy_banners 'book-text-intermission' %}
177 {% for insert in inserts %}
178 {% include 'annoy/dynamic_insert.html' %}
183 <script type="application/json" id="interesting-references">
185 {% for ref in book.references %}
186 {% if ref.entity.is_interesting %}
187 "{{ ref.entity.uri }}": {
188 {% if ref.entity.lat and ref.entity.lon %}
189 "location": [{{ ref.entity.lat }}, {{ ref.entity.lon }}],
191 "images": {{ ref.entity.images|safe }},
192 "label": "{{ ref.entity.label }}",
193 "description": "{{ ref.entity.description }}",
194 "wikipedia_link": "{{ ref.entity.wikipedia_link }}"
195 }{% if not forloop.last %},{% endif %}
201 {% endblock footer %}