X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1227b1201c537ea17e310f0faab4ead7cf0d25af..4db71d02697f83eac393bdf34fbe1aff54757df4:/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 c0fe955dd..17c4896b5 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,5 +1,5 @@ {% extends "catalogue/viewer_base.html" %} -{% load i18n %} +{% load i18n l10n %} {% load catalogue_tags %} {% load chunks %} {% load thumbnail %} @@ -9,9 +9,19 @@ {% block title %}{{ book.pretty_title }}{% endblock %} +{% block extrahead %} + + +{% endblock %} + {% block menu %}
  • + {% trans "Click to download" %}: {{ book.pretty_title }} - + {% trans "Table of contents" %}
  • @@ -39,12 +49,6 @@ - - + + {% trans "Numbering" %} + {% trans "Themes" %} + {% trans "Footnotes" %} + {% trans "References" %} + {% 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 %} +
    + {% 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 %}
    @@ -98,16 +168,6 @@ {% endif %} -
    -

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    -
    -
    {% include 'catalogue/book_short.html' %}
    @@ -119,4 +179,24 @@ {% include 'annoy/dynamic_insert.html' %} {% endfor %} + + {% localize off %} + + {% endlocalize %} {% endblock footer %}