move to django 1.4 and django-pipeline,
[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         <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             </ul>
29         </div>
30         <div id="info">
31             {% book_info book %}
32         </div>
33         <div id="download">
34             <ul>
35             {% if book.pdf_file %}
36             <li><a href="{{ book.pdf_file.url}}">PDF</a> {% trans "to print" %}</li>
37             {% endif %}
38             {% if  book.epub_file %}
39             <li><a href="{{ book.epub_file.url}}">EPUB</a> {% trans "for a reader" %}</li>
40             {% endif %}
41             {% if  book.mobi_file %}
42             <li><a href="{{ book.mobi_file.url}}">MOBI</a> {% trans "for Kindle" %}</li>
43             {% endif %}
44             {% if  book.txt_file %}
45             <li><a href="{{ book.txt_file.url}}">TXT</a> {% trans "for advanced usage" %}</li>
46             {% endif %}
47             <li><a href="{% url custom_pdf_form book.slug %}">{% trans "Download a custom PDF" %}</a></li>
48             </ul>
49         </div>
50         <div id="header">
51             <a href="/"><img src="{% static "img/logo-220.png" %}" alt="Wolne Lektury" /></a>
52         </div>
53         <div id="themes">
54             <ol>
55                 {% for theme, fragments in book_themes %}
56                 <li>{{ theme }}:
57                     {% for fragment in fragments %}
58                         <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
59                     {% endfor %}
60                 </li>
61                 {% endfor %}
62             </ol>
63         </div>
64         {{ book.html_file.read|safe }}
65         {{ piwik_tag|safe }}
66         <script type="text/javascript">
67         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
68         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
69         </script>
70         <script type="text/javascript">
71         var pageTracker = _gat._getTracker("UA-2576694-1");
72         pageTracker._trackPageview();
73         </script>
74     </body>
75 </html>