X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/dbdd1449a656f4c62055926d1531be95c2e6e66b..10d01e2faef06d1db0958908394f1f79441cd744:/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 93e755f4d..158396fe9 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,16 +1,27 @@ {% 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 %}
  • + {% trans "Click to download" %}: {{ book.pretty_title }} - + {% trans "Table of contents" %}
  • @@ -38,12 +49,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 }} +
    +
      + {% for c in book.get_children %} +
    1. {{ c.title }}
    2. + {% endfor %} +
    + {% endif %} +
    +
    {% book_info book %}
    @@ -85,12 +162,9 @@ {% for other_version in book.other_versions %}
  • - {% 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 %} @@ -99,19 +173,35 @@ {% endif %} -
    -

    {% trans "Settings" %}

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