X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f3e8dfa015744bd72796fdd8eff0d81f863cdc46..c36c3891e56611e2ad4c518daa46b8cc3f28188e:/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 b0e2f9c77..421d439fe 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -1,16 +1,32 @@ -{% extends "catalogue/viewer_base.html" %} -{% load i18n %} +{% extends "base.html" %} + + +{% load i18n l10n %} {% load catalogue_tags %} +{% load chunks %} {% load thumbnail %} +{% load static %} +{% load annoy_banners from annoy %} {% block title %}{{ book.pretty_title }}{% endblock %} +{% block extrahead %} + + +{% endblock %} + + {% block menu %}
  • - {% trans "Kliknij, by pobrać" %}: + {{ book.pretty_title }} @@ -20,93 +36,238 @@ {% 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 %} - -{% endblock menu %} + + {% trans + -{% block big-pane %} + + {% trans + -
    - {{ book.html_file.read|safe }} -
    -
    - {% 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 %}
    - {% endif %} -
    -

    {% trans "Settings" %}

    - {% trans "Display line numbers" %}
    - {% trans "Display themes" %}
    - {% trans "Display footnotes" %}
    +{% endblock %} -
    - {% include 'catalogue/book_short.html' %} + + + +{% block main %} +
    +
    + + + +
    +
    + Szacowany czas do końca: - +
    -{% endblock footer %} + +
    + {{ 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 %}