X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/9a938c8b406ce05e3bca4a5a483d473ece9e17b0..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 f51e565e6..a494e24b6 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,105 +1,273 @@ -{% extends "catalogue/viewer_base.html" %} -{% load i18n %} -{% load catalogue_tags ssify %} +{% extends "base.html" %} + + +{% load i18n l10n %} +{% load catalogue_tags %} +{% load chunks %} {% load thumbnail %} -{% load cache %} +{% load static %} +{% 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 "Kliknij, by pobrać" %}: + {{ book.pretty_title }} -
  • -{% endif %} + - + {% if book.other_versions.exists %} + + {% endif %} - + {% if extra_info.logo_mono %} + {% thumbnail extra_info.logo_mono '200x200' as th %} + {{ extra_info.logo_alt|default:'Sponsor' }} + {% endthumbnail %} + {% endif %} - - - {% endblock menu %} -{% block big-pane %} -
    - -
    - -
    - -
    - {% trans "Close" %} -
    {% trans "Please wait..." %}
    - -
    -{% endblock big-pane %} - - - - - -{% block footer %} -
    - {% book_info book %} -
    - -{% if book.other_versions.exists %} -
    -

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

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

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    -
    - -
    - {% ssi_include 'catalogue_book_short' pk=book.pk %} -
    -{% endblock footer %} +{% 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 }} → + {% endif %} + {% if prev %} + ← {{ prev.title }} + {% endif %} + {{ book_text|safe }} + {% endwith %} + + + + + + + + +
    +
    + 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 %} +
    + +
    + + + + {% if book.has_sync_file %} +
    + {% include 'catalogue/snippets/jplayer_reader.html' %} +
    + + {% endif %} + + +
    + +
    + + {% localize off %} + + + {% endlocalize %} + +{% endblock main %}