X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3c0e373447323b5e33b273859e790a2054771afa..8885fd14f5f040eb3aa69f1d705856f99a1fa572:/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 5a6db1138..041a07a28 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,18 +1,29 @@ {% 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 "Kliknij, by pobrać" %}: + {{ book.pretty_title }} @@ -21,76 +32,154 @@ {% if book.other_versions.exists %}
  • {% endif %} - - + + {% if extra_info.logo_mono %} + {% thumbnail extra_info.logo_mono '200x200' as th %} + + {% endthumbnail %} + {% endif %} + + {% trans "Numeracja" %} + {% trans "Motywy" %} + {% trans "Przypisy" %} + {% trans "Pinezki" %} + {% 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..." %}
    + {% trans "Zamknij" %} +
    {% trans "Proszę czekać..." %}
    -{% endblock big-pane %} + +
    +
    + x +
    +
    + +
    + + +{% endblock big-pane %} + {% block footer %} + {% if book.has_sync_file %} +
    + {% include 'catalogue/snippets/jplayer_reader.html' %} +
    + + {% endif %} +
    + {% if book.parent %} + {% for b in book.ancestors %} + {% 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 %} + {% book_info book %}
    {% if book.other_versions.exists %}
    -

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

    - {% trans "Close the other version" %} +

    {% trans "Inne wersje utworu" %}

    + {% trans "Zamknij drugą wersję" %}
    {% endif %} -
    -

    {% trans "Settings" %}

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