X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/95540212503565ab22fe706bab0c9dd80b14d61e..149903ae7da0968ef3b1b0dc0f329afeaa5a7007:/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 42eb1fa5a..e10bc9689 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,13 +1,23 @@ {% extends "catalogue/viewer_base.html" %} -{% load i18n %} -{% load catalogue_tags ssify %} +{% load i18n l10n %} +{% load catalogue_tags %} +{% load chunks %} {% load thumbnail %} -{% load cache %} +{% load annoy_banners from annoy %} {% block title %}{{ book.pretty_title }}{% endblock %} +{% block extrahead %} + + +{% endblock %} + {% block menu %}
  • @@ -27,7 +37,7 @@ {% endif %}
  • @@ -38,12 +48,6 @@ - - + + {% trans "Numbering" %} + {% trans "Themes" %} + {% trans "Footnotes" %} + {% trans "References" %} + {% endblock menu %} {% block big-pane %}
    - + {% with next=book.get_next_text prev=book.get_prev_text %} + {% if next %} + {{ next.title }} → + {% endif %} + {% if prev %} + ← {{ prev.title }} + {% endif %} +
    + {% content_warning book %} +
    +
    + {{ book_text|safe }} + {% endwith %}
    + +
    {% trans "Close" %}
    {% trans "Please wait..." %}
    -{% endblock big-pane %} + +
    +
    + x +
    +
    + +
    + +{% 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 %}
    @@ -88,10 +158,7 @@ - {% cache 86400 book_mini_box other_version.pk %} - {% include 'catalogue/book_mini_box.html' with book=other_version no_link=True %} - {% endcache %} - {#% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %#} + {{ other_version.mini_box_nolink }} {% endfor %} @@ -100,17 +167,35 @@ {% endif %} -
    -

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    -
    -
    {% include 'catalogue/book_short.html' %}
    + +
    + {% annoy_banners 'book-text-intermission' %} + + {% for insert in inserts %} + {% include 'annoy/dynamic_insert.html' %} + {% endfor %} +
    + + {% localize off %} + + {% endlocalize %} {% endblock footer %}