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