ajaxable dialogs fixes,
[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     {% load reporting_stats %}
6     <head>
7         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8         <meta http-equiv="Content-Style-Type" content="text/css" />
9         <meta name="description" 
10             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
11         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
12             {% block titleextra %}{% endblock %}{% endblock %}</title>
13         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/png" />
14         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" href="{{ STATIC_URL }}opensearch.xml" />
15         {% compressed_css "all" %}
16
17         {% block extrahead %}
18         {% endblock %}
19     </head>
20     <body id="{% block bodyid %}base{% endblock %}">
21
22         {% block bodycontent %}
23
24         <div id="header">
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                 <span>
34                 {% count_books book_count %}
35                 {% url book_list as b %}
36                 {% url book_list as r %}
37                 {% blocktrans count book_count as c %}
38                 <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
39                 {% plural %}
40                 <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
41                 {% endblocktrans %}
42                 </span>
43             </div>
44
45             <p id="user-info" class="mono">
46                 {% if user.is_authenticated %}
47                     {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
48                     | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
49                     {% if user.is_staff %}
50                     | <a href="/admin/">{% trans "Administration" %}</a>
51                     {% endif %}
52                     | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
53                 {% else %}
54                     <a href="{% url login %}?next={{ request.path }}"
55                         id="login" class="ajaxable">
56                             {% trans "Sign in" %}</a>
57                     /
58                     <a href="{% url register %}?next={{ request.path }}"
59                         id="register" class="ajaxable">
60                             {% trans "Register" %}</a>
61                 {% endif %}
62             </p>
63
64
65             <div class="clearboth"></div>
66
67         </div>
68         </div>
69
70         <div id="half-header">
71         <div id="half-header-content">
72
73
74
75             <form id="search-area" action="/fullsearch/">
76                 
77                 <span id="search-field" class="grid-line">
78                     <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">
79                 </span><span id="search-button">
80                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
81                 </span>
82                 
83             </form>
84
85
86
87             <div class="clearboth"></div>
88         </div>
89         </div>
90
91
92
93         <div id="main-content">
94
95             <div id="nav-line">
96             <ul id="catalogue">
97                 <li><a href="{% url catalogue %}#autorzy"><span class='mono'>{% trans "Authors" %}</span></a></li>
98                 <li><a href="{% url catalogue %}#gatunki"><span class='mono'>{% trans "Genres" %}</span></a></li>
99                 <li><a href="{% url catalogue %}#rodzaje"><span class='mono'>{% trans "Kinds" %}</span></a></li>
100                 <li><a href="{% url catalogue %}#epoki"><span class='mono'>{% trans "Epochs" %}</span></a></li>
101                 <li><a href="{% url catalogue %}#motywy"><span class='mono'>{% trans "Themes" %}</span></a></li>
102                 <li><a href="{% url book_list %}"><span class='mono'>{% trans "All books" %}</span></a></li>
103                 <li><a href="{% url audiobook_list %}"><span class='mono'>{% trans "Audiobooks" %}</span></a></li>
104                 <li><a href="{% url daisy_list %}"><span class='mono'>{% trans "DAISY" %}</span></a></li>
105             </ul>
106
107             <form action="{% url django.views.i18n.set_language %}" method="post">
108             <div id="lang-menu">
109                 <span id='lang-button' class='mono'>
110                     {% trans "Language versions" %}</span>
111                 <div id="lang-menu-items">
112                 {% for lang in LANGUAGES %}
113                     <button type="submit" name="language"
114                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
115                         value="{{ lang.0 }}">{{ lang.1 }}</button>
116                 {% endfor %}
117                 </div>
118             </div>
119             </form>
120             </div>
121
122             <div class="clearboth"></div>
123
124
125
126             {% block body %}
127             {% endblock %}
128
129
130
131
132         <div class="clearboth"></div>
133
134         </div>{# end main-content #}
135
136
137         <div id="footer">
138         <div id="footer-content">
139             <p>
140                 {% blocktrans %}
141                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
142                                 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.
143                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
144                                 {% endblocktrans %}
145             </p>
146             <p>
147                 {% blocktrans %}
148                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
149                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
150                                 {% endblocktrans %}
151             </p>
152
153             {% block add_footer %}{% endblock %}
154
155                         {% sponsor_page "footer" %}
156         </div>
157         </div>
158
159
160
161         {# template #}
162         <div id="ajaxable-window" class='dialog-window'>
163             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
164             <div class="target">
165                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
166             </div>
167         </div>
168
169
170         {% endblock bodycontent %}
171
172
173         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
174         <script type="text/javascript">
175             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
176             var STATIC_URL = "{{ STATIC_URL }}";
177         </script>
178         {% compressed_js "base" %}
179
180         <!--{{ piwik_tag|safe }}
181         <script type="text/javascript">
182         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
183         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
184         </script>
185         <script type="text/javascript">
186         var pageTracker = _gat._getTracker("UA-2576694-1");
187         pageTracker._trackPageview();
188         </script>-->
189     </body>
190 </html>