fixes #2910: minor l10n fix
[wolnelektury.git] / apps / wolnelektury_core / templates / superbase.html
1 <!DOCTYPE html>
2 <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
3         {% load cache compressed i18n %}
4         {% load static from staticfiles %}
5     {% load catalogue_tags funding_tags reporting_stats sponsor_tags %}
6     <head>
7         <meta charset="utf-8">
8         <meta name="application-name" content="Wolne Lektury" />
9         <meta property="og:site_name" content="Wolne Lektury" />
10         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
11         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
12         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
13         <meta name="description" 
14             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
15         {% block ogextra %}{% endblock %}
16         
17
18         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
19             {% block titleextra %}{% endblock %}{% endblock %}</title>
20         <link rel="icon" href="{% static "img/favicon.png" %}" type="image/png" />
21         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" 
22             href="{% static "opensearch.xml" %}" />
23         {% compressed_css "all" %}
24         <link href="{% static "css/core.css" %}" rel="stylesheet" type="text/css" media="screen" />
25         <link href="{% static "css/antiscreen.css" %}" rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" />
26         {#% compressed_css "handheld" %#}
27         <!--[if IE]>
28                 {% compressed_css "ie" %}
29         <![endif]-->
30
31         {% block extrahead %}
32         {% endblock %}
33     </head>
34     <body id="{% block bodyid %}base{% endblock %}">
35
36         {% block bodycontent %}
37         {% funding link=1 closeable=1 add_class="funding-top-header" %}
38                 <div id="header-bg"></div>
39
40         <div id="header">
41
42         <div id="header-content">
43             <div id="logo">
44                 <a class="logo" href="/">
45                 <img id="logo-image" src="{% static "img/logo-neon.png" %}"
46                     alt="Wolne Lektury" /></a>
47             </div>
48
49             <div id="tagline">
50                 <span>
51                 {% cache 60 tagline LANGUAGE_CODE %}
52                     {% url 'book_list' as b %}
53                     {% url 'infopage' 'prawa' as r %}
54                         {% count_books book_count %}
55                     {% blocktrans count book_count as c %}
56                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
57                     {% plural %}
58                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
59                     {% endblocktrans %}
60                 {% endcache %}
61                 </span>
62             </div>
63
64             <p id="user-info" class="mono">
65                 {% if user.is_authenticated %}
66                     {% trans "Welcome" %}, 
67                         <span class="hidden-box-wrapper">
68                                 <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
69                                         <strong>{{ user.username }}</strong>
70                                 </a>
71                                 <span id="user-menu" class="hidden-box">
72                                         <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
73                                         <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
74                                         <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
75                                 </span>
76                         </span>
77                     | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
78                     {% if user.is_staff %}
79                     | <a href="/admin/">{% trans "Administration" %}</a>
80                     {% endif %}
81                     | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
82                 {% else %}
83                     <a href="{% url 'login' %}?next={{ request.path }}"
84                         id="login" class="ajaxable">
85                             {% trans "Sign in" %}</a>
86                     /
87                     <a href="{% url 'register' %}?next={{ request.path }}"
88                         id="register" class="ajaxable">
89                             {% trans "Register" %}</a>
90                 {% endif %}
91             </p>
92
93
94             <div class="clearboth"></div>
95
96         </div>
97         </div>
98
99         <div id="half-header">
100         <div id="half-header-content">
101
102
103
104             <form id="search-area" action="{% url 'search' %}" class="hidelabels">
105                 
106                 <div id="search-field" class="grid-line">
107                         <label for="search">{{search_form.q.label}}</label>
108                   {{search_form.q}}
109 <!--                    <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">-->
110                 </div><div id="search-button">
111                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
112                 </div>
113                 
114                 <div class="clearboth"></div>
115             </form>
116
117
118
119         </div>
120         </div>
121
122
123         <div id="main-content">
124             
125             <div id="nav-line">
126                 {% catalogue_menu %}
127
128             <div id="lang-menu" class="hoverget">
129                 <span id='lang-button' class='mono hoverclick'>
130                     <span class="lang-flag">⚐</span>
131                     {% trans "Language versions" %}</span>
132                 <div id="lang-menu-items">
133                 {% for lang in LANGUAGES %}
134                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
135                     {% csrf_token %}
136                     <input type="hidden" name="language" value="{{ lang.0 }}" />
137                     <button type="submit"
138                         lang="{{ lang.0 }}"
139                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
140                         >{{ lang.1 }}</button>
141                     </form>
142                 {% endfor %}
143                 </div>
144             </div>
145             </div>
146
147             <div class="clearboth"></div>
148
149
150
151             {% block body %}
152             {% endblock %}
153
154
155
156
157         <div class="clearboth"></div>
158
159         </div>{# end main-content #}
160
161
162         <div id="footer">
163         <div id="footer-content">
164             <p>
165                 {% blocktrans %}
166                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
167                                 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.
168                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
169                                 {% endblocktrans %}
170             </p>
171             <p>
172                 {% blocktrans %}
173                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
174                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
175                                 {% endblocktrans %}
176             </p>
177             <p>Nowa strona biblioteki Wolne Lektury powstała dzięki środkom otrzymanym w ramach Programu Operacyjnego Fundusz Inicjatyw Obywatelskich, Senatu RP (zadanie realizowane w ramach zlecania przez Kancelarię Senatu zadań w zakresie opieki nad Polonią i Polakami za granicą w 2011 r.) oraz Narodowego Instytutu Audiowizualnego w ramach programu Dziedzictwo Cyfrowe.</p>
178
179             {% block add_footer %}{% endblock %}
180
181                         {% sponsor_page "footer" %}
182         </div>
183         </div>
184
185
186
187         {# template #}
188         <div id="ajaxable-window" class='dialog-window'>
189             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
190             <div class="target">
191                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
192             </div>
193         </div>
194
195
196         {% endblock bodycontent %}
197
198
199         <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
200         <script type="text/javascript">
201             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
202             var STATIC_URL = "{{ STATIC_URL }}";
203         </script>
204         {% compressed_js "base" %}
205
206         {{ piwik_tag|safe }}
207
208                 {% block extrabody %}
209                 {% endblock %}
210
211         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
212     </body>
213 </html>