1 {% extends "catalogue/viewer_base.html" %}
3 {% load catalogue_tags %}
7 {% block title %}{{ book.pretty_title }}{% endblock %}
12 <a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
13 <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
14 width="120" height="166"
15 alt="{{ book.pretty_title }}"
16 title="{{ book.pretty_title }}">
20 {% if book.other_versions.exists %}
22 <a href="#" data-box="other">
23 <span class="label">{% trans "Other versions" %}</span>
29 <a href="#" data-box="toc">
30 <span class="label">{% trans "Table of contents" %}</span>
35 <a href="#" data-box="themes">
36 <span class="label">{% trans "Themes" %}</span>
40 <li id="menu-settings">
41 <a href="#" data-box="settings">
42 <span class="label">{% trans "Settings" %}</span>
46 <li id="menu-nota_red">
47 <a href="#" data-box="nota_red">
48 <span class="label">{% trans "Edit. note" %}</span>
53 <a href="#info" data-box="info">
54 <span class="label">{% trans "Infobox" %}</span>
62 <article id="main-text">
66 <article id="other-text">
67 <a class="other-text-close" href="#">{% trans "Close" %}</a>
68 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
69 <div id="other-text-body" style="display: none;"></div>
71 {% endblock big-pane %}
75 <div id="info" class="box">
79 {% if book.other_versions.exists %}
80 <div class="box" id="other">
81 <h2>{% trans "Other versions of the book" %}</h2>
82 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
85 {% for other_version in book.other_versions %}
87 <a class="display-other"
88 data-other="{{ other_version.html_url }}"
89 href="{% url 'book_text' other_version.slug %}">
90 {{ other_version.mini_box_nolink }}
99 <div class="box" id="settings">
100 <h2>{% trans "Settings" %}</h2>
101 <a href="#" class="settings-switch" id="settings-line-numbers"
102 data-setting="always-hide-line-numbers">{% trans "Display line numbers" %}</a><br/>
103 <a href="#" class="settings-switch" id="settings-themes"
104 data-setting="always-hide-themes">{% trans "Display themes" %}</a><br/>
105 <a href="#" class="settings-switch" id="settings-annotations"
106 data-setting="no-annotations">{% trans "Display footnotes" %}</a><br/>
109 <div class="box" id="book-short">
110 {% include 'catalogue/book_short.html' %}
112 {% endblock footer %}