1 {% extends "catalogue/viewer_base.html" %}
3 {% load catalogue_tags ssify %}
8 {% block title %}{{ book.pretty_title }}{% endblock %}
13 <a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
14 <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '240x332' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
15 width="120" height="166"
16 alt="{{ book.pretty_title }}"
17 title="{{ book.pretty_title }}">
21 {% if book.other_versions.exists %}
23 <a href="#" data-box="other">
24 <span class="label">{% trans "Other versions" %}</span>
30 <a href="#" data-box="toc">
31 <span class="label">{% trans "Table of contents" %}</span>
36 <a href="#" data-box="themes">
37 <span class="label">{% trans "Themes" %}</span>
41 <li id="menu-settings">
42 <a href="#" data-box="settings">
43 <span class="label">{% trans "Settings" %}</span>
47 <li id="menu-nota_red">
48 <a href="#" data-box="nota_red">
49 <span class="label">{% trans "Edit. note" %}</span>
54 <a href="#info" data-box="info">
55 <span class="label">{% trans "Infobox" %}</span>
62 {% include "annoy.html" %}
64 <article id="main-text">
65 <!--#include file='{{ book.html_url }}' -->
68 <article id="other-text">
69 <a class="other-text-close" href="#">{% trans "Close" %}</a>
70 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
71 <div id="other-text-body" style="display: none;"></div>
73 {% endblock big-pane %}
77 <div id="info" class="box">
81 {% if book.other_versions.exists %}
82 <div class="box" id="other">
83 <h2>{% trans "Other versions of the book" %}</h2>
84 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
87 {% for other_version in book.other_versions %}
89 <a class="display-other"
90 data-other="{{ other_version.html_url }}"
91 href="{% url 'book_text' other_version.slug %}">
92 {% cache 86400 book_mini_box other_version.pk %}
93 {% include 'catalogue/book_mini_box.html' with book=other_version no_link=True %}
95 {#% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %#}
104 <div class="box" id="settings">
105 <h2>{% trans "Settings" %}</h2>
106 <a href="#" class="settings-switch" id="settings-line-numbers"
107 data-setting="always-hide-line-numbers">{% trans "Display line numbers" %}</a><br/>
108 <a href="#" class="settings-switch" id="settings-themes"
109 data-setting="always-hide-themes">{% trans "Display themes" %}</a><br/>
110 <a href="#" class="settings-switch" id="settings-annotations"
111 data-setting="no-annotations">{% trans "Display footnotes" %}</a><br/>
114 <div class="box" id="book-short">
115 {% include 'catalogue/book_short.html' %}
117 {% endblock footer %}