X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ae60b2a3949e96357477cc04f90fd0873cee8a92..ddf2102eff7ea420a4ea5144c43409587fc1156e:/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 339cfc7b2..758c8cb81 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,100 +1,223 @@ {% extends "catalogue/viewer_base.html" %} -{% load i18n %} -{% load catalogue_tags ssify %} +{% load i18n l10n %} +{% load catalogue_tags %} +{% load chunks %} {% load thumbnail %} +{% load annoy_banners from annoy %} {% block title %}{{ book.pretty_title }}{% endblock %} +{% block extrahead %} + + +{% endblock %} + {% block menu %} -
  • - {{ book.pretty_title }} -
  • - -{% if book.other_versions.exists %} -
  • + + {% trans "Click to download" %}: + {{ book.pretty_title }} +
  • + + {% if book.other_versions.exists %} + -{% endif %} + {% endif %} - + + + - + - + - + {% 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 %} +
    + + + + -{% endblock big-pane %} +
    +
    +
    + x +
    +
    + +
    +{% endblock big-pane %} + {% block footer %} -
    - {% book_info book %} -
    - -{% if book.other_versions.exists %} -
    -

    {% trans "Other versions of the book" %}

    - {% trans "Close the other version" %} -
    + +
    + {% book_info book %} +
    + + {% if book.other_versions.exists %} +
    +

    {% trans "Other versions of the book" %}

    + {% trans "Close the other version" %} + +
    + {% endif %} + +
    + {% include 'catalogue/book_short.html' %} +
    + +
    + {% annoy_banners 'book-text-intermission' %} + + {% for insert in inserts %} + {% include 'annoy/dynamic_insert.html' %} {% endfor %} - {% endspaceless %} - -
    -{% endif %} - -
    -

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    -
    - -
    - {% ssi_include 'catalogue_book_short' pk=book.pk %} -
    +
    + + +
    + +
    + + {% localize off %} + + + {% endlocalize %} {% endblock footer %}