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