bookmedia tests, long file name fix
[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>{% block title %}WolneLektury.pl{% endblock %}</title>
9         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/x-icon" />
10         {% compressed_css "book" %}
11         {% compressed_js "jquery" %}
12         {% compressed_js "book" %}
13     </head>
14     <body>
15         <div id="menu">
16             <ul>
17                 <li><a href="#toc">{% trans "Table of contents" %}</a></li>
18                 <li><a href="#themes">{% trans "Themes" %}</a></li>
19                 <li><a href="#nota_red">{% trans "Edit. note" %}</a></li>
20                 <li><a href="#info">{% trans "Infobox" %}</a></li>
21             </ul>
22         </div>
23         <div id="info">
24             <p>
25                 {% if book.get_extra_info_value.license %}
26                     {% trans "This work is licensed under:" %}
27                     <a href="{{ book.get_extra_info_value.license }}">{{ book.get_extra_info_value.license_description }}</a>
28                 {% else %}
29                     {% blocktrans %}This work isn't covered by copyright and is part of the
30                     public domain, which means it can be freely used, published and
31                     distributed. If there are any additional copyrighted materials
32                     provided with this work (such as annotations, motifs etc.), those
33                     materials are licensed under the 
34                     <a href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0</a>
35                     license.{% endblocktrans %}
36                 {% endif %}
37             </p>
38     
39             {% if book.get_extra_info_value.source_name %}
40               <p>{% trans "Text prepared based on:" %} {{ book.get_extra_info_value.source_name }}</p>
41             {% endif %}
42     
43             {% if book.get_extra_info_value.description %}
44               <p>{{ book.get_extra_info_value.description }}</p>
45             {% endif %}
46
47             {% if book.get_extra_info_value.editor or book.get_extra_info_value.technical_editor %}
48               <p>{% trans "Edited and annotated by:" %}
49                   {% all_editors book.get_extra_info_value %}.</p>
50             {% endif %}
51
52         </div>
53         <div id="header">
54             <div id="logo">
55                 <a href="/"><img src="{{ STATIC_URL }}img/logo.png" alt="WolneLektury.pl - logo" /></a>
56             </div>
57         </div>
58         <div id="themes">
59             <ol>
60                 {% for theme, fragments in book_themes %}
61                 <li>{{ theme }}:
62                     {% for fragment in fragments %}
63                         <a href="#m{{ fragment.anchor }}">{{ forloop.counter }}</a>
64                     {% endfor %}
65                 <li>
66                 {% endfor %}
67             </ol>
68         </div>
69         {{ book.html_file.read|safe }}
70         <script type="text/javascript">
71         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
72         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
73         </script>
74         <script type="text/javascript">
75         var pageTracker = _gat._getTracker("UA-2576694-1");
76         pageTracker._trackPageview();
77         </script>
78     </body>
79 </html>