<article id="main-text" {% if book.has_sync_file %}class="has-sync"{% endif %}>
- {% with next=book.get_next_text prev=book.get_prev_text %}
+<div id="sidebar">
+ {% if book.other_versions.exists %}
+ <div class="box" id="other">
+ <h2>{% trans "Inne wersje tekstu" %}</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>
+
+{% 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 %}
<a id="reference-close" href="#">x</a>
<div id="reference-images">
</div>
- <a id="reference-link" target="_blank"></a>
+ <div style="display: flex;">
+ <a id="reference-link" target="_blank"></a>
+ <a id="reference-print" target="_blank" style="font-size: 1.5em; padding: 8px;">🖨️</a>
+ </div>
</div>
<div id="annotation-box"
</div>
<div id="qbox" class="qbox"
- data-default-leftoffset="105"
data-attach-bottom="true"
>
<div class="content">
/
<a href="{% url 'register' %}?next={{ request.path }}"> Załóż konto
</a>
+ </div>
+ <div class="zakladka-tool zakladka-tool_sluchaj">
+ Słuchaj od tego miejsca
+ </div>
+ </div>
{% endif %}
- </div>
<div class="pointer pointer-bottom"></div>
<div class="pointer pointer-top"></div>
</div>
</div>
+</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' %}
<div id="player-bar">
{% include 'catalogue/snippets/jplayer_reader.html' %}
</div>
- <script type="application/json" id="smil">
- {{ book.get_sync|safe }}
- </script>
+ {{ book.get_sync|json_script:"smil" }}
{% endif %}
{% for ref in book.references %}
{% if ref.entity.is_interesting %}
"{{ ref.entity.uri }}": {
+ "id": {{ ref.entity.id }},
{% if ref.entity.lat and ref.entity.lon %}
"location": [{{ ref.entity.lat }}, {{ ref.entity.lon }}],
{% endif %}