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