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