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