1 {% extends "catalogue/viewer_base.html" %}
3 {% load catalogue_tags ssify %}
8 {% block title %}{{ book.pretty_title }}{% endblock %}
12 <li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
13 <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
14 width="80" height="111"
15 alt="{{ book.pretty_title }}"
16 title="{{ book.pretty_title }}">
19 {% if book.other_versions.exists %}
20 <li id="menu-other"><a href="#" data-box="other">
21 <span class="label">{% trans "Other versions" %}</span>
26 <li id="menu-toc"><a href="#" data-box="toc">
27 <span class="label">{% trans "Table of contents" %}</span>
30 <li id="menu-themes"><a href="#" data-box="themes">
31 <span class="label">{% trans "Themes" %}</span>
34 <li id="menu-settings"><a href="#" data-box="settings">
35 <span class="label">{% trans "Settings" %}</span>
38 <li id="menu-nota_red"><a href="#" data-box="nota_red">
39 <span class="label">{% trans "Edit. note" %}</span>
42 <li id="menu-info"><a href="#info" data-box="info">
43 <span class="label">{% trans "Infobox" %}</span>
50 <div id="big-pane" style="">
52 <article id="main-text">
53 <!--#include file='{{ book.html_file.url }}'-->
56 <article id="other-text">
57 <a class="other-text-close" href="#">{% trans "Close" %}</a>
58 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
59 <div id="other-text-body" style="display: none;"></div>
61 {% endblock big-pane %}
68 <div id="info" class="box">
72 {% if book.other_versions.exists %}
73 <div class="box" id="other">
74 <h2>{% trans "Other versions of the book" %}</h2>
75 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
78 {% for other_version in book.other_versions %}
80 <a class="display-other"
81 data-other="{{ other_version.html_file.url }}"
82 href="{% url 'book_text' other_version.slug %}">
83 {% cache 86400 book_mini_box other_version.pk %}
84 {% include 'catalogue/book_mini_box.html' with book=other_version no_link=True %}
86 {#% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %#}
95 <div class="box" id="settings">
96 <h2>{% trans "Settings" %}</h2>
97 <a href="#" class="settings-switch" id="settings-line-numbers" data-setting="always-hide-line-numbers">{% trans "Display line numbers" %}</a><br/>
98 <a href="#" class="settings-switch" id="settings-themes" data-setting="always-hide-themes">{% trans "Display themes" %}</a><br/>
99 <a href="#" class="settings-switch" id="settings-annotations" data-setting="no-annotations">{% trans "Display footnotes" %}</a><br/>
102 <div class="box" id="book-short">
103 {% ssi_include 'catalogue_book_short' pk=book.pk %}
105 {% endblock footer %}