infopages: allow template tags, some cleaning
[wolnelektury.git] / wolnelektury / templates / base.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4         {% load i18n compressed catalogue_tags sponsor_tags %}
5     <head>
6         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
7         <meta http-equiv="Content-Style-Type" content="text/css" />
8         <meta name="description" 
9             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
10         <title>{% trans "Wolne Lektury internet library" %}
11             {% block titleextra %}{% endblock %}</title>
12         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/png" />
13         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" href="{{ STATIC_URL }}opensearch.xml" />
14         {% compressed_css "all" %}
15         <script type="text/javascript">var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";</script>
16         {% compressed_js "jquery" %}
17         {% compressed_js "all" %}
18         {% block extrahead %}
19         {% endblock %}
20     </head>
21     <body id="{% block bodyid %}base{% endblock %}">
22
23         {% block bodycontent %}
24
25         <div id="header" class="grid-line">
26
27         <div id="header-content">
28             <div id="logo">
29                 <a class="logo" href="/">
30                 Wolne Lektury</a>
31             </div>
32
33             <div id="tagline">
34                 <a href=''>1666</a> darmowych lektur do których masz <a href=''>prawo</a>
35             </div>
36
37             <p id="user-info" class="mono">
38                 {% if user.is_authenticated %}
39                     {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
40                     | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
41                     {% if user.is_staff %}
42                     | <a href="/admin/">{% trans "Administration" %}</a>
43                     {% endif %}
44                     | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
45                 {% else %}
46                     <a href="{% url login %}" class="login-register-link">{% trans "Sign in" %} / {% trans "Register" %}</a>
47                 {% endif %}
48             </p>
49
50
51             <div class="clearboth"></div>
52
53         </div>
54         </div>
55
56         <div id="half-header">
57         <div id="half-header-content">
58
59
60
61             <form id="search">
62                 
63                 <span id="search-field" class="grid-line">
64                     <input title="np. Leśmian" name="q" autocomplete="off">
65                 </span><span id="search-button">
66                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
67                 </span>
68                 
69             </form>
70
71
72
73             <div class="clearboth"></div>
74         </div>
75         </div>
76
77
78
79         <div id="main-content">
80
81             <div id="nav-line">
82             <ul id="catalogue">
83                 <li><a href="{% url book_list %}"><span class='mono'>{% trans "All books" %}</span></a></li>
84                 <li><a href="{% url audiobook_list %}"><span class='mono'>{% trans "Audiobooks" %}</span></a></li>
85                 <li><a href="{% url daisy_list %}"><span class='mono'>{% trans "DAISY" %}</span></a></li>
86                 <li><a href="{% url catalogue %}#autorzy"><span class='mono'>{% trans "Authors" %}</span></a></li>
87                 <li><a href="{% url catalogue %}#epoki"><span class='mono'>{% trans "Epochs" %}</span></a></li>
88                 <li><a href="{% url catalogue %}#rodzaje"><span class='mono'>{% trans "Kinds" %}</span></a></li>
89                 <li><a href="{% url catalogue %}#gatunki"><span class='mono'>{% trans "Genres" %}</span></a></li>
90                 <li><a href="{% url catalogue %}#motywy"><span class='mono'>{% trans "Themes" %}</span></a></li>
91             </ul>
92
93             <form action="{% url django.views.i18n.set_language %}" method="post">
94             <div id="lang-menu">
95                 <span id='lang-button' class='mono-small'>
96                     {% trans "Language versions" %}</span>
97                 <div id="lang-menu-items">
98                 {% for lang in LANGUAGES %}
99                     <button type="submit" name="language"
100                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} {% if forloop.last %}last{% endif %}"
101                         value="{{ lang.0 }}">{{ lang.1 }}</button>
102                 {% endfor %}
103                 </div>
104             </div>
105             </form>
106             </div>
107
108             <div class="clearboth"></div>
109
110
111
112             {% block body %}
113             {% endblock %}
114
115
116
117
118         <div class="clearboth"></div>
119
120
121
122         <div id="footer">
123             <p>
124                 {% blocktrans %}
125                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
126                                 Digital reproductions are made by <a href="http://www.bn.org.pl/">The National Library</a>, <a href="http://www.bs.katowice.pl/">Biblioteka Śląska</a> and <a href="http://www.bibliotekaelblaska.pl/">Biblioteka Elbląska</a>, based on TNL, BŚ and BE resources.
127                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
128                                 {% endblocktrans %}
129             </p>
130             <p>
131                 {% blocktrans %}
132                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
133                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
134                                 {% endblocktrans %}
135             </p>
136
137             {% block add_footer %}{% endblock %}
138
139                         {% sponsor_page "footer" %}
140         </div>
141
142         </div>{# end main-content #}
143
144
145         <!--div id="login-register-window">
146             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
147             <div class="target">
148                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
149                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
150                     <p><span id="id_login-__all__"></span></p>
151                     <ol>
152                         {% authentication_form %}
153                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
154                     </ol>
155                 </form>
156                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
157                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
158                     <p><span id="id_registration-__all__"></span></p>
159                     <ol>
160                         {% user_creation_form %}
161                         <li><input type="submit" value="{% trans "Register" %}" /></li>
162                     </ol>
163                 </form>
164             </div>
165         </div-->
166
167
168         {% endblock bodycontent %}
169
170         <!--{{ piwik_tag|safe }}
171         <script type="text/javascript">
172         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
173         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
174         </script>
175         <script type="text/javascript">
176         var pageTracker = _gat._getTracker("UA-2576694-1");
177         pageTracker._trackPageview();
178         </script>-->
179     </body>
180 </html>