3 {% load static from staticfiles %}
4 {% load chunks compressed catalogue_tags %}
9 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
10 <title>{{ book.pretty_title }} :: {% trans "Wolne Lektury" %}</title>
11 <link rel="icon" href="{% static "img/favicon.png" %}" type="image/x-icon" />
12 {% compressed_css "book_text" %}
15 <a href="#" id="menu-toggle-on"></a>
17 <li><a href="#" id="menu-toggle-off"></a></li>
20 <img src="{% static 'img/logo-neon.png' %}" width="80"
22 title="Wolne Lektury">
25 <li><a href="{{ book.get_absolute_url }}" id="menu-book" data-box="book-short">
26 <img src="{% thumbnail book.cover '80x111' as thumb %}{{ thumb.url }}{% empty %}{{ book.cover.url }}{% endthumbnail %}"
27 width="80" height="111"
28 alt="{{ book.pretty_title }}"
29 title="{{ book.pretty_title }}">
32 {% if book.other_versions.exists %}
33 <li id="menu-other"><a href="#" data-box="other">
34 <span class="label">{% trans "Other versions" %}</span>
39 <li id="menu-toc"><a href="#" data-box="toc">
40 <span class="label">{% trans "Table of contents" %}</span>
43 <li id="menu-themes"><a href="#" data-box="themes">
44 <span class="label">{% trans "Themes" %}</span>
47 <li id="menu-settings"><a href="#" data-box="settings">
48 <span class="label">{% trans "Settings" %}</span>
51 <li id="menu-nota_red"><a href="#" data-box="nota_red">
52 <span class="label">{% trans "Edit. note" %}</span>
55 <li id="menu-info"><a href="#info" data-box="info">
56 <span class="label">{% trans "Infobox" %}</span>
62 <article id="main-text">
63 {{ book.html_file.read|safe }}
67 <article id="other-text">
68 <a class="other-text-close" href="#">{% trans "Close" %}</a>
69 <div id="other-text-waiter">{% trans "Please wait..." %}</div>
70 <div id="other-text-body" style="display: none;"></div>
76 <div id="info" class="box">
80 {% if book.other_versions.exists %}
81 <div class="box" id="other">
82 <h2>{% trans "Other versions of the book" %}</h2>
83 <a class="other-text-close" href="#">{% trans "Close the other version" %}</a>
86 {% for other_version in book.other_versions %}
87 <li><a class="display-other"
88 data-other="{{ other_version.html_file.url }}"
89 href="{% url 'book_text' other_version.slug %}">
90 {% book_mini other_version with_link=False %}
99 <div class="box" id="settings">
100 <h2>{% trans "Settings" %}</h2>
101 <a href="#" class="settings-switch" id="settings-line-numbers" data-setting="always-hide-line-numbers">{% trans "Display line numbers" %}</a><br/>
102 <a href="#" class="settings-switch" id="settings-themes" data-setting="always-hide-themes">{% trans "Display themes" %}</a><br/>
103 <a href="#" class="settings-switch" id="settings-annotations" data-setting="no-annotations">{% trans "Display footnotes" %}</a><br/>
106 <div class="box" id="book-short">
107 {% book_short book %}
110 <div id="box-underlay"></div>
113 <div id="ajaxable-window" class='dialog-window'>
114 <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
116 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
123 <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
124 <script type="text/javascript">
125 var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
126 var STATIC_URL = "{{ STATIC_URL }}";
128 {% compressed_js "book_text" %}
129 <script src="{% static "js/modernizr.custom.19652.js" %}"></script>