Merge branch 'reflow'
[wolnelektury.git] / src / catalogue / templates / catalogue / book_text.html
1 {% extends "catalogue/viewer_base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags ssify %}
4 {% load thumbnail %}
5
6
7 {% block title %}{{ book.pretty_title }}{% endblock %}
8
9
10 {% block menu %}
11 <li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
12     <img src="{% if book.cover_thumb %}{% thumbnail book.cover_thumb '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover_thumb.url }}{% endthumbnail %}{% endif %}"
13         width="80" height="111"
14         alt="{{ book.pretty_title }}"
15         title="{{ book.pretty_title }}">
16 </a></li>
17
18 {% if book.other_versions.exists %}
19     <li id="menu-other"><a href="#" data-box="other">
20         <span class="label">{% trans "Other versions" %}</span>
21     </a>
22     </li>
23 {% endif %}
24
25 <li id="menu-toc"><a href="#" data-box="toc">
26     <span class="label">{% trans "Table of contents" %}</span>
27 </a></li>
28
29 <li id="menu-themes"><a href="#" data-box="themes">
30     <span class="label">{% trans "Themes" %}</span>
31 </a></li>
32
33 <li id="menu-settings"><a href="#" data-box="settings">
34     <span class="label">{% trans "Settings" %}</span>
35 </a></li>
36
37 <li id="menu-nota_red"><a href="#" data-box="nota_red">
38     <span class="label">{% trans "Edit. note" %}</span>
39 </a></li>
40
41 <li id="menu-info"><a href="#info" data-box="info">
42     <span class="label">{% trans "Infobox" %}</span>
43 </a></li>
44 {% endblock menu %}
45
46
47
48 {% block big-pane %}
49 <div id="big-pane" style="">
50
51 <article id="main-text">
52 <!--#include file='{{ book.html_file.url }}'-->
53 </article>
54
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>
59 </article>
60 {% endblock big-pane %}
61
62
63
64
65
66 {% block footer %}
67 <div id="info" class="box">
68     {% book_info book %}
69 </div>
70
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>
75     <ul>
76     {% spaceless %}
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                 {% ssi_include 'catalogue_book_mini_nolink' pk=other_version.pk %}
82                 </a>
83         </li>
84     {% endfor %}
85     {% endspaceless %}
86     </ul>
87 </div>
88 {% endif %}
89
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/>
95 </div>
96
97 <div class="box" id="book-short">
98     {% ssi_include 'catalogue_book_short' pk=book.pk %}
99 </div>
100 {% endblock footer %}