There's some work on book page left.
[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="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
9         <meta name="application-name" content="Wolne Lektury" />
10         <meta property="og:site_name" content="Wolne Lektury" />
11         <meta property="og:title" content="{% block ogtitle %}{% endblock %}" />
12         <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
13         <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}" />
14         <meta name="description" 
15             content="{% block metadescription %}Darmowe opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
16         {% block ogextra %}{% endblock %}
17         
18
19         <title>{% block title %}{% trans "Wolne Lektury" %} :: 
20             {% block titleextra %}{% endblock %}{% endblock %}</title>
21         <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png" />
22         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury" 
23             href="{% static 'opensearch.xml' %}" />
24         {% compressed_css "main" %}
25         {% block extrahead %}
26         {% endblock %}
27     </head>
28     <body id="{% block bodyid %}base{% endblock %}">
29
30         {% block bodycontent %}
31         <div id="header-wrapper">
32         <header id="main">
33             <a href="/" id="logo">
34                 <img src="{% static 'img/logo-neon.png' %}"
35                     alt="Wolne Lektury" />
36             </a>
37
38             <p id="user-info">
39                 {% if user.is_authenticated %}
40                     {% trans "Welcome" %}, 
41                     <span class="hidden-box-wrapper">
42                         <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
43                             <strong>{{ user.username }}</strong>
44                         </a>
45                         <span id="user-menu" class="hidden-box">
46                             <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
47                             <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
48                             <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
49                         </span>
50                     </span>
51                     | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
52                     {% if user.is_staff %}
53                     | <a href="/admin/">{% trans "Administration" %}</a>
54                     {% endif %}
55                     | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
56                 {% else %}
57                     <a href="{% url 'login' %}?next={{ request.path }}"
58                         id="login" class="ajaxable">
59                             {% trans "Sign in" %}</a>
60                     /
61                     <a href="{% url 'register' %}?next={{ request.path }}"
62                         id="register" class="ajaxable">
63                             {% trans "Register" %}</a>
64                 {% endif %}
65             </p>
66
67             <p id="tagline">
68                 {% cache 60 tagline LANGUAGE_CODE %}
69                     {% url 'book_list' as b %}
70                     {% url 'infopage' 'prawa' as r %}
71                         {% count_books book_count %}
72                     {% blocktrans count book_count as c %}
73                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
74                     {% plural %}
75                     <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
76                     {% endblocktrans %}
77                 {% endcache %}
78             </p>
79
80             <form id="search-area" action="{% url 'search' %}">
81                 <div id="search-field">
82                     <label for="search">{{search_form.q.label}}</label>
83                         {{search_form.q}}
84                 </div><button type='submit'>{% trans "Search" %}</button>
85             </form>
86
87         </header>
88         </div>
89
90
91         <nav id="nav-line">
92             {% catalogue_menu %}
93
94             <div id="lang-menu" class="hoverget">
95                 <span id='lang-button' class='hoverclick'>
96                     <span class="lang-flag">⚐</span>
97                     <span class="label">{% trans "Language versions" %}</span>
98                 </span>
99                 <div id="lang-menu-items">
100                 {% for lang in LANGUAGES %}
101                     <form action="{% url 'django.views.i18n.set_language' %}" method="post">
102                     {% csrf_token %}
103                     <input type="hidden" name="language" value="{{ lang.0 }}" />
104                     <button type="submit"
105                         lang="{{ lang.0 }}"
106                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}"
107                         >{{ lang.1 }}</button>
108                     </form>
109                 {% endfor %}
110                 </div>
111             </div>
112
113             <div class="clearboth"></div>
114         </nav>
115
116
117         <div id="main-content">
118             {% block body %}
119             {% endblock %}
120             <div class="clearboth"></div>
121         </div>
122
123
124         <div id="footer-wrapper">
125         <footer id="main">
126             <p>
127                 {% blocktrans %}
128                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
129                                 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.
130                                 Hosting: <a href="http://www.icm.edu.pl/">ICM</a>.
131                                 {% endblocktrans %}
132             </p>
133             <p>
134                 {% blocktrans %}
135                                 Modern Poland Foundation, 00-514 Warsaw, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
136                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
137                                 {% endblocktrans %}
138             </p>
139             <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>
140
141             {% block add_footer %}{% endblock %}
142
143                         {% sponsor_page "footer" %}
144         </footer>
145         </div>
146
147
148
149         {# template #}
150         <div id="ajaxable-window" class='dialog-window'>
151             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
152             <div class="target">
153                 <p><img src="{% static "img/indicator.gif" %}" alt="*"/> {% trans "Loading" %}</p>
154             </div>
155         </div>
156
157
158         {% endblock bodycontent %}
159
160
161         <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
162         <script type="text/javascript">
163             var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
164             var STATIC_URL = "{{ STATIC_URL }}";
165         </script>
166         {% compressed_js "base" %}
167
168         {{ piwik_tag|safe }}
169
170                 {% block extrabody %}
171                 {% endblock %}
172
173         <script src="{% static "js/modernizr.custom.19652.js" %}"></script>
174     </body>
175 </html>