X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e24e657ebf536f55c1bde66bd41563fae30a98b0..53a66f70e4a8f9585b3d1a459542fb2e44f310f2:/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 d9474b5a8..18e4bcc43 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,9 +1,12 @@ -{% extends "catalogue/viewer_base.html" %} +{% extends "base.html" %} + + {% load i18n l10n %} {% load catalogue_tags %} {% load chunks %} {% load thumbnail %} -{% load annoy_banners from annoy %} +{% load static %} +{% load annoy %} {% block title %}{{ book.pretty_title }}{% endblock %} @@ -18,6 +21,7 @@ crossorigin=""> {% endblock %} + {% block menu %}
  • @@ -37,162 +41,291 @@
  • {% endif %} - + {% if extra_info.logo_mono %} + {% thumbnail extra_info.logo_mono '200x200' as th %} + {{ extra_info.logo_alt|default:'Sponsor' }} + {% endthumbnail %} + {% endif %} + + - - - - {% trans "Numeracja" %} - {% trans "Motywy" %} - {% trans "Przypisy" %} - {% trans "Pinezki" %} -{% endblock menu %} -{% block big-pane %} +
    + {% book_info book %} +
    + + +
    + {% trans "Numeracja" %} + {% trans "Motywy" %} + {% trans "Przypisy" %} + {% trans "Pinezki" %} +
    + + +
    + {% 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 %} +
    + + +{% endblock %} + + + + +{% block main %} +
    +
    + + + +
    +
    + Szacowany czas do końca: - +
    +
    + +
    + {{ book.pretty_title }} + +
    +

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

    +

    {{ book.title }}

    + {% if book.translators.exists %} +

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

    + {% endif %} +
    + {% content_warning book %} +
    + + {#% annoy_banner 'book-start' %#} + +
    +
    + +
    +
    + + +
    + -
    - {% with next=book.get_next_text prev=book.get_prev_text %} +{% 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 }} +
    + +
    + {% include 'club/donation_step1_form.html' with form=donation_form %}
    -
    - {{ book_text|safe }} {% endwith %} -
    -
    - {% trans "Zamknij" %} -
    {% trans "Proszę czekać..." %}
    - -
    -
    -
    - x -
    -
    - -
    +
    + {% trans "Zamknij" %} +
    {% trans "Proszę czekać..." %}
    + +
    +
    +
    + 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 %} -
  • + +
    +
    + Skopiuj link + Skopiuj cytat + {% if request.user.is_authenticated %} + Zapisz cytat {% endif %} - {{ b.title }} -
      - {% endfor %} - {% for b in book.get_siblings %} -
    1. - {% if b == book %} - {{ b.title }} -
      +
    +
    +
    +
    + +
    +
    + Zakładka + Istniejąca zakładka + Notka +
    +
    +
    + {% if request.user.is_authenticated %} +
    + Usuń zakładkę +
    +
    + Dodaj zakładkę +
    +
    + Słuchaj od tego miejsca +
    +
    + + + + + +
    + {% else %} - {{ b.title }} + +
    + Słuchaj od tego miejsca +
    +
    {% endif %} -
  • - {% 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' %} -
    - {% annoy_banners 'book-text-intermission' %} + {% for insert in inserts %} + {% include 'annoy/dynamic_insert.html' %} + {% endfor %} +
    - {% for insert in inserts %} - {% include 'annoy/dynamic_insert.html' %} - {% endfor %} -
    +
    + + + + {% if book.has_sync_file %} +
    + {% include 'catalogue/snippets/jplayer_reader.html' %} +
    + + {% endif %}
    @@ -220,4 +353,5 @@ {% endlocalize %} -{% endblock footer %} + +{% endblock main %}