1 {% extends "catalogue/viewer_base.html" %}
3 {% load catalogue_tags %}
7 {% block title %}{{ book.pretty_title }}{% endblock %}
11 <li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
12 <img src="{% thumbnail book.cover_thumb '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}"
13 width="80" height="111"
14 alt="{{ book.pretty_title }}"
15 title="{{ book.pretty_title }}">
18 {% if book.other_versions.exists %}
19 <li id="menu-other"><a href="#" data-box="other">
20 <span class="label">{% trans "Other versions" %}</span>
25 <li id="menu-toc"><a href="#" data-box="toc">
26 <span class="label">{% trans "Table of contents" %}</span>
29 <li id="menu-themes"><a href="#" data-box="themes">
30 <span class="label">{% trans "Themes" %}</span>
33 <li id="menu-settings"><a href="#" data-box="settings">
34 <span class="label">{% trans "Settings" %}</span>
37 <li id="menu-nota_red"><a href="#" data-box="nota_red">
38 <span class="label">{% trans "Edit. note" %}</span>
41 <li id="menu-info"><a href="#info" data-box="info">
42 <span class="label">{% trans "Infobox" %}</span>
49 <div id="big-pane" style="">
51 <article id="main-text">
52 {{ book.html_file.read|safe }}
55 <article id="other-text">
56 <a class="other-text-close" href="#">{% trans "Close" %}</a>
57 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
58 <div id="other-text-body" style="display: none;"></div>
60 {% endblock big-pane %}
67 <div id="info" class="box">
71 {% if book.other_versions.exists %}
72 <div class="box" id="other">
73 <h2>{% trans "Other versions of the book" %}</h2>
74 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
77 {% for other_version in book.other_versions %}
78 <li><a class="display-other"
79 data-other="{{ other_version.html_file.url }}"
80 href="{% url 'book_text' other_version.slug %}">
81 {% book_mini other_version with_link=False %}
90 <div class="box" id="settings">
91 <h2>{% trans "Settings" %}</h2>
92 <a href="#" class="settings-switch" id="settings-line-numbers" data-setting="always-hide-line-numbers">{% trans "Display line numbers" %}</a><br/>
93 <a href="#" class="settings-switch" id="settings-themes" data-setting="always-hide-themes">{% trans "Display themes" %}</a><br/>
94 <a href="#" class="settings-switch" id="settings-annotations" data-setting="no-annotations">{% trans "Display footnotes" %}</a><br/>
97 <div class="box" id="book-short">
100 {% endblock footer %}