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