7486e05dc088d6a98486df28a2cbda7311abe074
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_text.html
1 {% load i18n %}
2 {% load url from future %}
3 {% load static from staticfiles %}
4 {% load chunks compressed catalogue_tags %}
5 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
6     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7 <html xmlns="http://www.w3.org/1999/xhtml">
8     <head>
9         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
10         <title>{% trans "Wolne Lektury" %} :: {{ book.pretty_title }}</title>
11         <link rel="icon" href="{% static "img/favicon.png"% }" type="image/x-icon" />
12         {% compressed_css "book" %}
13         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
14         {% compressed_js "book" %}
15         <!--[if IE]>
16             {% compressed_js "book_ie" %}
17         <![endif]-->
18
19     </head>
20     <body>
21         {% include "annoy.html" %}
22         <div id="menu">
23             <ul>
24                 <li><a class="menu" href="#toc">{% trans "Table of contents" %}</a></li>
25                 <li><a class="menu" href="#themes">{% trans "Themes" %}</a></li>
26                 <li><a class="menu" href="#nota_red">{% trans "Edit. note" %}</a></li>
27                 <li><a class="menu" href="#info">{% trans "Infobox" %}</a></li>
28                 <li><a href="{{ book.get_absolute_url }}">{% trans "Book's page" %}</a></li>
29                 <li><a class="menu" href="#download">{% trans "Download" %}</a></li>
30                 {% if related.media.mp3 or related.media.ogg %}
31                     <li><a class="open-player" target="_blank" href="{% url "book_player" book.slug %}">
32                         {% trans "Listen" %}</a></li>
33                 {% endif %}
34             </ul>
35         </div>
36         <div id="info">
37             {% book_info book %}
38         </div>
39         <div id="download">
40             <ul>
41             {% if book.pdf_file %}
42             <li><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</li>
43             {% endif %}
44             {% if book.epub_file %}
45             <li><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for a reader" %}</li>
46             {% endif %}
47             {% if book.mobi_file %}
48             <li><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</li>
49             {% endif %}
50             {% if  book.fb2_file %}
51             <li><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</li>
52             {% endif %}
53             {% if book.txt_file %}
54             <li><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</li>
55             {% endif %}
56             {% custom_pdf_link_li book %}
57             {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
58                 <li>{% trans "Download all audiobooks for this book" %}:
59                     {% download_audio book %}</li> 
60             {% endif %}
61             </ul>
62         </div>
63         <div id="header">
64             <a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" /></a>
65         </div>
66         <div id="themes">
67             <ol>
68                 {% for theme, fragments in book_themes %}
69                 <li>{{ theme }}:
70                     {% for fragment in fragments %}
71                         <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
72                     {% endfor %}
73                 </li>
74                 {% endfor %}
75             </ol>
76         </div>
77         {{ book.html_file.read|safe }}
78         {{ piwik_tag|safe }}
79         <script type="text/javascript">
80         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
81         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
82         </script>
83         <script type="text/javascript">
84         var pageTracker = _gat._getTracker("UA-2576694-1");
85         pageTracker._trackPageview();
86         </script>
87     </body>
88 </html>