+ <div id="info" class="box">
+ {% book_info book %}
+ </div>
+
+
+ <div id="settings" class="box">
+ <a href="#" class="settings-switch" id="settings-line-numbers"
+ data-setting="always-hide-line-numbers"><span>{% trans "Numeracja" %}</span></a>
+ <a href="#" class="settings-switch" id="settings-themes"
+ data-setting="always-hide-themes"><span>{% trans "Motywy" %}</span></a>
+ <a href="#" class="settings-switch" id="settings-annotations"
+ data-setting="no-annotations"><span>{% trans "Przypisy" %}</span></a>
+ <a href="#" class="settings-switch" id="settings-references"
+ data-setting="no-references"><span>{% trans "Pinezki" %}</span></a>
+ </div>
+
+
+ <div id="wltoc" class="box">
+ {% if book.parent %}
+ {% for b in book.ancestors %}
+ {% if forloop.counter > 1 %}
+ <li>
+ {% endif %}
+ <a href="{% if b.html_file %}{% url 'book_text' b.slug %}{% else %}{{ b.get_absolute_url }}{% endif %}">{{ b.title }}</a>
+ <ol>
+ {% endfor %}
+ {% for b in book.get_siblings %}
+ <li>
+ {% if b == book %}
+ <strong>{{ b.title }}</strong>
+ <div id="heretoc"></div>
+ {% else %}
+ <a href="{% url 'book_text' b.get_first_text.slug %}">{{ b.title }}</a>
+ {% endif %}
+ </li>
+ {% endfor %}
+
+ {% for b in book.ancestor.all %}
+ </ol>
+ {% if not forloop.counter.last %}
+ </li>
+ {% endif %}
+ {% endfor %}
+ {% else %}
+ <strong>{{ book.title }}</strong>
+ <div id="heretoc"></div>
+ <ol>
+ {% for c in book.get_children %}
+ <li><a href="{% url 'book_text' c.get_first_text.slug %}">{{ c.title }}</a></li>
+ {% endfor %}
+ </ol>
+ {% endif %}
+ </div>
+
+ </div>
+{% endblock %}
+
+
+
+
+{% block main %}
+ <div id="global-progress" class="l-container">
+ <div class="bar">
+ <span class="piece" style="flex-grow: 100;">
+ <span class="filled"></span>
+ </span>
+ </div>
+ <div class="progress-text">
+ Szacowany czas do końca: <span class="progress-text-value">56 min</span>
+ </div>
+ </div>
+
+ <header class="l-text_header">
+ <img class="l-text_header_cover" src="{% if book.cover_clean %}{{ book.cover_clean.url }}{% endif %}" alt="{{ book.pretty_title }}">
+
+ <div class="l-text_header__content">
+ <p class="l-text_header_author">{% for author in book.authors %}<a href="{{ author.get_absolute_url }}">{{ author.name }}</a>{% if not forloop.last %}, {% endif %}{% endfor %}
+ </p>
+ <h1 class="l-text_header_title"><a href="{{ book.get_absolute_url }}">{{ book.title }}</a></h1>
+ {% with translators=book.translators %}
+ {% if translators %}
+ <p class="l-header__translators">
+ {% if translators.0 != 'tłumacz nieznany' %}
+ {% trans "tłum." %}
+ {% endif %}
+ {% for translator in translators %}
+ {{ translator }}{% if not forloop.last %}, {% endif %}
+ {% endfor %}
+ </p>
+ {% endif %}
+ {% endwith %}
+ <div style="margin-top:1em;">
+ {% content_warning book %}
+ </div>
+
+ </div>
+ </header>
+