search ui draft
[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 %}{% trans "Wolne Lektury" %} :: 
11             {% block titleextra %}{% endblock %}{% 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 %}?next={{ request.path }}"
45                         id="login" class="ajaxable">
46                             {% trans "Sign in" %}</a>
47                     /
48                     <a href="{% url register %}?next={{ request.path }}"
49                         id="register" class="ajaxable">
50                             {% trans "Register" %}</a>
51                 {% endif %}
52             </p>
53
54
55             <div class="clearboth"></div>
56
57         </div>
58         </div>
59
60         <div id="half-header">
61         <div id="half-header-content">
62
63
64
65             <form id="search" action="/fullsearch/">
66                 
67                 <span id="search-field" class="grid-line">
68                     <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">
69                 </span><span id="search-button">
70                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
71                 </span>
72                 
73             </form>
74
75
76
77             <div class="clearboth"></div>
78         </div>
79         </div>
80
81
82
83         <div id="main-content">
84
85             <div id="nav-line">
86             <ul id="catalogue">
87                 <li><a href="{% url book_list %}"><span class='mono'>{% trans "All books" %}</span></a></li>
88                 <li><a href="{% url audiobook_list %}"><span class='mono'>{% trans "Audiobooks" %}</span></a></li>
89                 <li><a href="{% url daisy_list %}"><span class='mono'>{% trans "DAISY" %}</span></a></li>
90                 <li><a href="{% url catalogue %}#autorzy"><span class='mono'>{% trans "Authors" %}</span></a></li>
91                 <li><a href="{% url catalogue %}#epoki"><span class='mono'>{% trans "Epochs" %}</span></a></li>
92                 <li><a href="{% url catalogue %}#rodzaje"><span class='mono'>{% trans "Kinds" %}</span></a></li>
93                 <li><a href="{% url catalogue %}#gatunki"><span class='mono'>{% trans "Genres" %}</span></a></li>
94                 <li><a href="{% url catalogue %}#motywy"><span class='mono'>{% trans "Themes" %}</span></a></li>
95             </ul>
96
97             <form action="{% url django.views.i18n.set_language %}" method="post">
98             <div id="lang-menu">
99                 <span id='lang-button' class='mono-small'>
100                     {% trans "Language versions" %}</span>
101                 <div id="lang-menu-items">
102                 {% for lang in LANGUAGES %}
103                     <button type="submit" name="language"
104                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} {% if forloop.last %}last{% endif %}"
105                         value="{{ lang.0 }}">{{ lang.1 }}</button>
106                 {% endfor %}
107                 </div>
108             </div>
109             </form>
110             </div>
111
112             <div class="clearboth"></div>
113
114
115
116             {% block body %}
117             {% endblock %}
118
119
120
121
122         <div class="clearboth"></div>
123
124
125
126         <div id="footer">
127             <p>
128                 {% blocktrans %}
129                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
130                                 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.
131                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
132                                 {% endblocktrans %}
133             </p>
134             <p>
135                 {% blocktrans %}
136                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
137                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
138                                 {% endblocktrans %}
139             </p>
140
141             {% block add_footer %}{% endblock %}
142
143                         {% sponsor_page "footer" %}
144         </div>
145
146         </div>{# end main-content #}
147
148
149         {# template #}
150         <div id="ajaxable-window" class='dialog-window'>
151             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
152             <div class="target">
153                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
154             </div>
155         </div>
156
157
158         {% endblock bodycontent %}
159
160
161         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
162         <script type="text/javascript">
163             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
164             var STATIC_URL = "{{ STATIC_URL }}";
165         </script>
166         {% compressed_js "base" %}
167
168         <!--{{ piwik_tag|safe }}
169         <script type="text/javascript">
170         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
171         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
172         </script>
173         <script type="text/javascript">
174         var pageTracker = _gat._getTracker("UA-2576694-1");
175         pageTracker._trackPageview();
176         </script>-->
177     </body>
178 </html>