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