Remove unneeded header for pz file.
[wolnelektury.git] / src / wolnelektury / templates / base / app.html
1 <!DOCTYPE html>
2 {% spaceless %}
3   <html lang="{{ LANGUAGE_CODE }}" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
4     {% load pipeline i18n %}
5     {% load static %}
6     {% load piwik_tags %}
7     {% get_current_language as LANGUAGE_CODE %}
8     <head>
9       <meta charset="utf-8">
10       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
11       <meta name="application-name" content="Wolne Lektury" />
12       <meta property="og:site_name" content="Wolne Lektury" />
13       <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}" />
14       <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
15       <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.jpg{% endblock %}" />
16       <meta name="description" 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       <title>
20         {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}
21       </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       <link rel="manifest" href="/manifest.json">
26       {% stylesheet "main" %}
27       {% block extrahead %}{% endblock %}
28     </head>
29     <body id="{% block bodyid %}base{% endblock %}">
30
31       {% block bodycontent %}
32
33         <div id="whole-header">
34           <div id="header-wrapper">
35             <header id="main">
36               <a href="https://wolnelektury.pl" id="logo">
37                 <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury"/>
38               </a>
39
40               <div id="lang-menu" class="hoverget">
41                 <span id='lang-button' class='hoverclick'>
42                   <img src="{% static "img/contrib/language/language.svg" %}" alt="{% trans "Language" %}">
43                   <span class="label"> {% trans "Language" %}</span>
44                 </span>
45                 <div id="lang-menu-items">
46                   {% for lang in LANGUAGES %}
47                     <form action="{% url 'set_language' %}" method="post">
48                       {% csrf_token %}
49                       <input type="hidden" name="language" value="{{ lang.0 }}"/>
50                       <button type="submit" lang="{{ lang.0 }}"
51                               class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %}">{{ lang.1 }}</button>
52                     </form>
53                   {% endfor %}
54                 </div>
55               </div>
56
57               <nav id="menu">
58                 <ul id="user-info">
59                   {% if request.user.is_authenticated %}
60                     <li>
61                       <a href="{% url 'user_settings' %}">
62                         <strong>{{ request.user.username }}</strong>
63                       </a>
64                     </li>
65                     <li>
66                       <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
67                     </li>
68                   {% endif %}
69                 </ul>
70
71               </nav>
72             </header>
73           </div>
74         </div>
75
76         <div id="main-content">
77           {% block body %}
78           {% endblock %}
79           <div class="clearboth"></div>
80         </div>
81
82       {% endblock bodycontent %}
83
84       <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.1/jquery.min.js" integrity="sha512-BkBgWiL0N/EFIbLZYGTgbksKG5bS6PtwnWvVk3gccv+KhtK/4wkLxCRGh+kelKiXx7Ey4jfTabLg3AEIPC7ENA==" crossorigin="anonymous"></script>
85       <script type="text/javascript">
86         var LANGUAGE_CODE = "{{ LANGUAGE_CODE }}";
87         var STATIC_URL = "{{ STATIC_URL }}";
88       </script>
89       {% javascript "base" %}
90
91       {% tracking_code %}
92
93       {% block extrabody %}{% endblock %}
94
95       <script src="{% static "js/contrib/modernizr.custom.19652.js" %}"></script>
96     </body>
97   </html>
98 {% endspaceless %}