4c2c5758486ea739c7d9f20ed07436e53463e43f
[wolnelektury.git] / wolnelektury / templates / base.html
1 <!DOCTYPE html>
2 <html>
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
15         {% block extrahead %}
16         {% endblock %}
17     </head>
18     <body id="{% block bodyid %}base{% endblock %}">
19
20         {% block bodycontent %}
21
22         <div id="header">
23
24         <div id="header-content">
25             <div id="logo">
26                 <a class="logo" href="/">
27                 Wolne Lektury</a>
28             </div>
29
30             <div id="tagline">
31                 <span>
32                 {% cache 60 tagline LANGUAGE_CODE %}
33                     {% url book_list as b %}
34                     {% url infopage 'o-projekcie' as r %}
35                         {% count_books book_count %}
36                     {% blocktrans count book_count as c %}
37                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
38                     {% plural %}
39                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
40                     {% endblocktrans %}
41                 {% endcache %}
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 social_my_shelf %}" id="user-shelves-link">{% trans "My shelf" %}</a>
49                     {% if user.is_staff %}
50                     | <a href="/admin/">{% trans "Administration" %}</a>
51                     {% endif %}
52                     | <a href="{% url logout %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% 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                 <div id="search-field" class="grid-line">
78                   {{search_form.q}}
79 <!--                    <input title="np. Leśmian" name="q" autocomplete="off" data-source="/fullsearch/hint/">-->
80                 </div><div id="search-button">
81                     <button type='submit'><span class="mono">{% trans "Search" %}</span></button>
82                 </div>
83                 
84                 <div class="clearboth"></div>
85             </form>
86
87
88
89         </div>
90         </div>
91
92
93
94         <div id="main-content">
95
96             <div id="nav-line">
97                 {% cache 60 catalogue-menu LANGUAGE_CODE %}
98                         {% catalogue_menu %}
99                 {% endcache %}
100
101             <form action="{% url django.views.i18n.set_language %}" method="post">
102             <div id="lang-menu">
103                 <span id='lang-button' class='mono'>
104                     {% trans "Language versions" %}</span>
105                 <div id="lang-menu-items">
106                 {% for lang in LANGUAGES %}
107                     <button type="submit" name="language"
108                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
109                         value="{{ lang.0 }}">{{ lang.1 }}</button>
110                 {% endfor %}
111                 </div>
112             </div>
113             </form>
114             </div>
115
116             <div class="clearboth"></div>
117
118
119
120             {% block body %}
121             {% endblock %}
122
123
124
125
126         <div class="clearboth"></div>
127
128         </div>{# end main-content #}
129
130
131         <div id="footer">
132         <div id="footer-content">
133             <p>
134                 {% blocktrans %}
135                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
136                                 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.
137                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
138                                 {% endblocktrans %}
139             </p>
140             <p>
141                 {% blocktrans %}
142                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
143                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
144                                 {% endblocktrans %}
145             </p>
146
147             {% block add_footer %}{% endblock %}
148
149                         {% sponsor_page "footer" %}
150         </div>
151         </div>
152
153
154
155         {# template #}
156         <div id="ajaxable-window" class='dialog-window'>
157             <div class="header mono"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
158             <div class="target">
159                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
160             </div>
161         </div>
162
163
164         {% endblock bodycontent %}
165
166
167         <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
168         <script type="text/javascript">
169             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
170             var STATIC_URL = "{{ STATIC_URL }}";
171         </script>
172         {% compressed_js "base" %}
173
174         <!--{{ piwik_tag|safe }}
175         <script type="text/javascript">
176         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
177         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
178         </script>
179         <script type="text/javascript">
180         var pageTracker = _gat._getTracker("UA-2576694-1");
181         pageTracker._trackPageview();
182         </script>-->
183     </body>
184 </html>