X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/55129823d3e0d54ba5da369efb31a3caed698333..f1cc3d495b3df83b3e745575c2ff3bdf4942b2fe:/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 67372b3dd..a494e24b6 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,8 +1,11 @@ -{% extends "catalogue/viewer_base.html" %} +{% extends "base.html" %} + + {% load i18n l10n %} {% load catalogue_tags %} {% load chunks %} {% load thumbnail %} +{% load static %} {% load annoy_banners from annoy %} @@ -18,6 +21,7 @@ crossorigin=""> {% endblock %} + {% block menu %}
  • @@ -37,30 +41,6 @@
  • {% endif %} - - - - - - - - {% if extra_info.logo_mono %} {% thumbnail extra_info.logo_mono '200x200' as th %} {% trans "Numeracja" %} - {% trans "Motywy" %} - {% trans "Przypisy" %} - {% trans "Pinezki" %} + {% endblock menu %} -{% block big-pane %} + +{% block breadcrumb-right %} + +{% endblock %} + + + + +{% block main %} +
    +
    + + + +
    +
    + Szacowany czas do końca: 56 min +
    +
    + +
    + {{ book.pretty_title }} + +
    +

    {% for author in book.authors %}{{ author.name }}{% if not forloop.last %}, {% endif %}{% endfor %} +

    +

    {{ book.title }}

    + {% with translators=book.translators %} + {% if translators %} +

    + {% if translators.0 != 'tłumacz nieznany' %} + {% trans "tłum." %} + {% endif %} + {% for translator in translators %} + {{ translator }}{% if not forloop.last %}, {% endif %} + {% endfor %} +

    + {% endif %} + {% endwith %} +
    + {% content_warning book %} +
    + +
    +
    +
    {% with next=book.get_next_text prev=book.get_prev_text %} {% if next %} - {{ next.title }} → + {{ next.title }} → {% endif %} {% if prev %} - ← {{ prev.title }} + ← {{ prev.title }} {% endif %} -
    - {% content_warning book %} -
    -
    {{ book_text|safe }} {% endwith %} -
    -
    - {% trans "Zamknij" %} -
    {% trans "Proszę czekać..." %}
    - -
    -
    -
    - x -
    + + + + +
    +
    + x +
    +
    +
    - -
    + {% if book.other_versions.exists %} +
    +

    {% trans "Inne wersje utworu" %}

    + {% trans "Zamknij drugą wersję" %} + +
    + {% endif %} + +
    + {% annoy_banners 'book-text-intermission' %} + + {% for insert in inserts %} + {% include 'annoy/dynamic_insert.html' %} + {% endfor %} +
    + + -{% endblock big-pane %} -{% block footer %} {% if book.has_sync_file %}
    {% include 'catalogue/snippets/jplayer_reader.html' %} @@ -129,78 +242,6 @@ {{ book.get_sync|safe }} {% 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 %} -
    - - {% if book.other_versions.exists %} -
    -

    {% trans "Inne wersje utworu" %}

    - {% trans "Zamknij drugą wersję" %} - -
    - {% endif %} - -
    - {% include 'catalogue/book_short.html' %} -
    - -
    - {% annoy_banners 'book-text-intermission' %} - - {% for insert in inserts %} - {% include 'annoy/dynamic_insert.html' %} - {% endfor %} -
    @@ -228,4 +269,5 @@ {% endlocalize %} -{% endblock footer %} + +{% endblock main %}