X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/05cca019b7dba62e457feb47df10e7a41dd939ef..305485e53a72c278e2b24b754f68df2e4dd71f40:/src/catalogue/templates/catalogue/book_text.html diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html index 3953e6a9b..7d32a2280 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -28,7 +28,7 @@ {% endif %} @@ -39,12 +39,6 @@ - - + + {% trans "Numbering" %} + {% trans "Themes" %} + {% trans "Footnotes" %} + {% endblock menu %} {% block big-pane %}
- {{ book_text|safe }} + {% with next=book.get_next_text prev=book.get_prev_text %} + {% if next %} + {{ next.title }} → + {% endif %} + {% if prev %} + ← {{ prev.title }} + {% endif %} +
+ {{ book_text|safe }} + {% endwith %}
+ +
{% trans "Close" %}
{% trans "Please wait..." %}
@@ -72,8 +85,39 @@
{% endblock big-pane %} - {% block footer %} +
+ {% if book.parent %} + {% for b in book.ancestor.all %} + {% if forloop.counter > 1 %} +
  • + {% endif %} + {{ b.title }} +
      + {% endfor %} + {% for b in book.get_siblings %} +
    1. + {% if b == book %} + {{ b.title }} +
      + {% else %} + {{ b.title }} + {% endif %} +
    2. + {% endfor %} + + {% for b in book.ancestor.all %} +
    + {% if not forloop.counter.last %} +
  • + {% endif %} + {% endfor %} + {% else %} + {{ book.title }} +
    + {% endif %} +
    +
    {% book_info book %}
    @@ -98,16 +142,6 @@ {% endif %} -
    -

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    -
    -
    {% include 'catalogue/book_short.html' %}
    @@ -116,18 +150,7 @@ {% annoy_banners 'book-text-intermission' %} {% for insert in inserts %} - {% with text=insert.choose %} -
    - -
    - {{ text.text|safe|linebreaks }} -
    - {% if text.image %} - - {% endif %} -
    -
    - {% endwith %} + {% include 'annoy/dynamic_insert.html' %} {% endfor %} {% endblock footer %}