X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a0f904af83bea5306b09fd66d8dfa254761f5a07..c36c3891e56611e2ad4c518daa46b8cc3f28188e:/src/catalogue/templates/catalogue/book_text.html?ds=sidebyside
diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html
index 67372b3dd..421d439fe 100644
--- a/src/catalogue/templates/catalogue/book_text.html
+++ b/src/catalogue/templates/catalogue/book_text.html
@@ -1,8 +1,11 @@
-{% extends "catalogue/viewer_base.html" %}
+{% extends "base.html" %}
+
+
{% load i18n l10n %}
{% load catalogue_tags %}
{% load chunks %}
{% load thumbnail %}
+{% load static %}
{% load annoy_banners from annoy %}
@@ -18,6 +21,7 @@
crossorigin="">
{% endblock %}
+
{% block menu %}
{% with next=book.get_next_text prev=book.get_prev_text %}
{% if next %}
- {{ next.title }} →
+ {{ next.title }} →
{% endif %}
{% if prev %}
- ← {{ prev.title }}
+ ← {{ prev.title }}
{% endif %}
-
- {% content_warning book %}
-
-
{{ book_text|safe }}
{% endwith %}
-
-
- {% trans "Zamknij" %}
- {% trans "ProszÄ czekaÄ..." %}
-
-
-
-
-
x
-
+ {% if book.other_versions.exists %}
+
+ {% endif %}
+
+
+ {% annoy_banners 'book-text-intermission' %}
+
+ {% for insert in inserts %}
+ {% include 'annoy/dynamic_insert.html' %}
+ {% endfor %}
+
+
+
-{% endblock big-pane %}
-{% block footer %}
{% if book.has_sync_file %}
{% include 'catalogue/snippets/jplayer_reader.html' %}
@@ -129,78 +242,6 @@
{{ book.get_sync|safe }}
{% endif %}
-
- {% if book.parent %}
- {% for b in book.ancestors %}
- {% if forloop.counter > 1 %}
-
- {% endif %}
- {{ b.title }}
-
- {% endfor %}
- {% for b in book.get_siblings %}
- -
- {% if b == book %}
- {{ b.title }}
-
- {% else %}
- {{ b.title }}
- {% endif %}
-
- {% endfor %}
-
- {% for b in book.ancestor.all %}
-
- {% if not forloop.counter.last %}
-
- {% endif %}
- {% endfor %}
- {% else %}
-
{{ book.title }}
-
-
- {% for c in book.get_children %}
- - {{ c.title }}
- {% endfor %}
-
- {% endif %}
-
-
-
- {% book_info book %}
-
-
- {% if book.other_versions.exists %}
-
- {% endif %}
-
-
- {% include 'catalogue/book_short.html' %}
-
-
-
- {% annoy_banners 'book-text-intermission' %}
-
- {% for insert in inserts %}
- {% include 'annoy/dynamic_insert.html' %}
- {% endfor %}
-
@@ -228,4 +269,5 @@
{% endlocalize %}
-{% endblock footer %}
+
+{% endblock main %}