minor style fix
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_text.html
1 {% load i18n %}
2 {% load static from staticfiles %}
3 {% load chunks compressed catalogue_tags %}
4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
5     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
6 <html xmlns="http://www.w3.org/1999/xhtml">
7     <head>
8         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
9         <title>{% trans "Wolne Lektury" %} :: {{ book.pretty_title }}</title>
10         <link rel="icon" href="{% static "img/favicon.png" %}" type="image/x-icon" />
11         {% compressed_css "book" %}
12         <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
13         {% compressed_js "book" %}
14         <!--[if IE]>
15             {% compressed_js "book_ie" %}
16         <![endif]-->
17
18     </head>
19     <body>
20         <div id="menu">
21             <ul>
22                 <li><a class="menu" href="#toc">{% trans "Table of contents" %}</a></li>
23                 <li><a class="menu" href="#themes">{% trans "Themes" %}</a></li>
24                 <li><a class="menu" href="#nota_red">{% trans "Edit. note" %}</a></li>
25                 <li><a class="menu" href="#info">{% trans "Infobox" %}</a></li>
26                 <li><a href="{{ book.get_absolute_url }}">{% trans "Book's page" %}</a></li>
27                 <li><a class="menu" href="#download">{% trans "Download" %}</a></li>
28                 {% if related.media.mp3 or related.media.ogg %}
29                     <li><a class="open-player" target="_blank" href="{% url "book_player" book.slug %}">
30                         {% trans "Listen" %}</a></li>
31                 {% endif %}
32                 {% if book.other_versions.exists %}
33                     <li><a class="menu" href="#other-versions">Inne wersje</a></li>
34                 {% endif %}
35             </ul>
36         </div>
37         <div id="info">
38             {% book_info book %}
39         </div>
40         <div id="download">
41             <ul>
42             {% if book.pdf_file %}
43             <li><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</li>
44             {% endif %}
45             {% if book.epub_file %}
46             <li><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for a reader" %}</li>
47             {% endif %}
48             {% if book.mobi_file %}
49             <li><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</li>
50             {% endif %}
51             {% if  book.fb2_file %}
52             <li><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</li>
53             {% endif %}
54             {% if book.txt_file %}
55             <li><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</li>
56             {% endif %}
57             {% custom_pdf_link_li book %}
58             {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
59                 <li>{% trans "Download all audiobooks for this book" %}:
60                     {% download_audio book %}</li> 
61             {% endif %}
62             </ul>
63         </div>
64         {% if book.other_versions.exists %}
65         <div id="other-versions">
66             <ul>
67             {% for version in book.other_versions %}
68                 <li>{{ version.pretty_title }}:
69                     <br/><a href="#" class="display-other" data-other="{{ version.html_file.url }}">porównaj</a>,
70                     <a href="{{ version.get_absolute_url }}">przejdź</a>.
71                 </li>
72             {% endfor %}
73             </ul>
74         </div>
75         {% endif %}
76         <div id="header">
77             <a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" /></a>
78         </div>
79
80         <div style="position:relative; margin: 4.5em 0">
81             {{ book.html_file.read|safe }}
82             <div id="other-text"
83                 style="display:none;position: absolute; top: 0; left: 780px; border-left: 1px solid #ddd">
84                 <a id="other-text-close" href="#" style="position: absolute; top: -1.5em;">(zamknij)</a>
85                 <div id="other-text-waiter">wait...</div>
86                 <div id="other-text-body" style="display: none;"></div>
87             </div>
88         </div>
89         {{ piwik_tag|safe }}
90     </body>
91 </html>