Merge branch 'dev'
[wolnelektury.git] / src / wolnelektury / templates / superbase.html
index 9a97864..d3abd31 100644 (file)
     <head>
         <meta charset="utf-8">
         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
-        <meta name="application-name" content="Wolne Lektury"/>
-        <meta property="og:site_name" content="Wolne Lektury"/>
-        <meta property="og:title" content="{% block ogtitle %}{% endblock %}"/>
-        <meta property="og:type" content="{% block ogtype %}website{% endblock %}"/>
-        <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.png{% endblock %}"/>
-        <meta name="description"
-              content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}"/>
+        <meta name="application-name" content="Wolne Lektury" />
+        <meta property="og:site_name" content="Wolne Lektury" />
+        <meta property="og:title" content="{% block ogtitle %}{{ page_title }}{% endblock %}" />
+        <meta property="og:type" content="{% block ogtype %}website{% endblock %}" />
+        <meta property="og:image" content="{% block ogimage %}{{ FULL_STATIC_URL }}img/wiatrak.jpg{% endblock %}" />
+        <meta name="description" content="{% block metadescription %}Darmowe, opracowane, pełne teksty lektur, e-booki, audiobooki i pliki DAISY na wolnej licencji.{% endblock %}" />
         {% block ogextra %}{% endblock %}
 
         <title>
-            {% block title %}{% trans "Wolne Lektury" %} :: {% block titleextra %}{% endblock %}{% endblock %}</title>
+            {% block title %}{% block titleextra %}{{ page_title }}{% endblock %} :: {% trans "Wolne Lektury" %}{% endblock %}</title>
         <link rel="icon" href="{% static 'img/favicon.png' %}" type="image/png"/>
         <link rel="search" type="application/opensearchdescription+xml" title="Wolne Lektury"
               href="{% static 'opensearch.xml' %}"/>
             {{ current_offer.endif }}
         {% endif %}
 
-        <div id="ads">
-            <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
-                <img src="{% static 'img/ads/960x150_wolneLektury.jpg' %}"
-                     alt="Wesprzyj działalność Nowoczesnej Polski"/>
-            </a>
-        </div>
-
         <div id="whole-header">
             <div id="header-wrapper">
                 <header id="main">
                             {{ user_username.if }}
                             <li><a href="{% url 'logout' %}?next=
 
+
                                     {% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
                             </li>
                             {{ user_username.else }}
                         </ul>
 
 
-                        <ul id="main-menu">
-                            <li><a href="{% url 'book_list' %}">{% trans "Literature" %}</a></li>
-                            <li><a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a></li>
-                            <li><a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a></li>
-                            <li><a href="{% url 'gallery' %}">{% trans "Gallery" %}</a></li>
-                            <li><a href="{% url 'catalogue' %}">Wszystkie utwory</a></li>
-                        </ul>
+            <ul id="main-menu">
+                <li{% if active_menu_item == 'books' %} class="active"{% endif %}>
+                    <a href="{% url 'book_list' %}">{% trans "Literature" %}</a>
+                </li>
+                <li{% if active_menu_item == 'theme' %} class="active"{% endif %}>
+                    <a href="{% url 'theme_catalogue' %}">{% trans "Themes" %}</a>
+                </li>
+                <li{% if active_menu_item == 'audiobooks' %} class="active"{% endif %}>
+                    <a href="{% url 'audiobook_list' %}">{% trans "Audiobooks" %}</a>
+                </li>
+                <li{% if active_menu_item == 'gallery' %} class="active"{% endif %}>
+                    <a href="{% url 'gallery' %}">{% trans "Gallery" %}</a>
+                </li>
+                <li{% if active_menu_item == 'all_works' %} class="active"{% endif %}>
+                    <a href="{% url 'catalogue' %}">{% trans "All works" %}</a>
+                </li>
+            </ul>
 
 
                     </nav>
 
 
         <div id="main-content">
+            <div id="banners">
+                <a href="https://nowoczesnapolska.org.pl/pomoz-nam/wesprzyj-nas/">
+                    <img src="{% static 'img/banners/960x150_wolneLektury.jpg' %}"
+                         alt="Wesprzyj działalność Nowoczesnej Polski"/>
+                </a>
+            </div>
             {% block body %}
             {% endblock %}
             <div class="clearboth"></div>