Upgrade to Django 1.5.
[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="http://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         {% include "annoy.html" %}
21         <div id="menu">
22             <ul>
23                 <li><a class="menu" href="#toc">{% trans "Table of contents" %}</a></li>
24                 <li><a class="menu" href="#themes">{% trans "Themes" %}</a></li>
25                 <li><a class="menu" href="#nota_red">{% trans "Edit. note" %}</a></li>
26                 <li><a class="menu" href="#info">{% trans "Infobox" %}</a></li>
27                 <li><a href="{{ book.get_absolute_url }}">{% trans "Book's page" %}</a></li>
28                 <li><a class="menu" href="#download">{% trans "Download" %}</a></li>
29                 {% if related.media.mp3 or related.media.ogg %}
30                     <li><a class="open-player" target="_blank" href="{% url "book_player" book.slug %}">
31                         {% trans "Listen" %}</a></li>
32                 {% endif %}
33             </ul>
34         </div>
35         <div id="info">
36             {% book_info book %}
37         </div>
38         <div id="download">
39             <ul>
40             {% if book.pdf_file %}
41             <li><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</li>
42             {% endif %}
43             {% if book.epub_file %}
44             <li><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for a reader" %}</li>
45             {% endif %}
46             {% if book.mobi_file %}
47             <li><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</li>
48             {% endif %}
49             {% if  book.fb2_file %}
50             <li><a href="{{ book.fb2_file.url}}">FB2</a> {% trans "FictionBook" %}</li>
51             {% endif %}
52             {% if book.txt_file %}
53             <li><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</li>
54             {% endif %}
55             {% custom_pdf_link_li book %}
56             {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
57                 <li>{% trans "Download all audiobooks for this book" %}:
58                     {% download_audio book %}</li> 
59             {% endif %}
60             </ul>
61         </div>
62         <div id="header">
63             <a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" /></a>
64         </div>
65         <div id="themes">
66             <ol>
67                 {% for theme, fragments in book_themes %}
68                 <li>{{ theme }}:
69                     {% for fragment in fragments %}
70                         <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
71                     {% endfor %}
72                 </li>
73                 {% endfor %}
74             </ol>
75         </div>
76         {{ book.html_file.read|safe }}
77         {{ piwik_tag|safe }}
78         <script type="text/javascript">
79         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
80         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
81         </script>
82         <script type="text/javascript">
83         var pageTracker = _gat._getTracker("UA-2576694-1");
84         pageTracker._trackPageview();
85         </script>
86     </body>
87 </html>