4 {% load latest_blog_posts from blog %}
5 {% load preview_ad from catalogue_tags %}
7 <nav class="l-navigation">
8 <div class="l-container">
9 <a href="/" class="l-navigation__logo">
10 <img src="{% static "2022/images/logo.svg" %}" alt="WolneLektury.pl">
12 <div class="l-naviagion__search">
13 <form action="/szukaj/">
14 <input id="search" name="q" type="text" placeholder="szukaj tytułu, autora, motywów…" autocomplete="off" data-source="/szukaj/hint/?max=10">
17 <div class="l-navigation__actions">
18 {% if request.user.is_authenticated %}
19 <a href="/ludzie/polka/"><i class="icon icon-liked"></i></a>
23 <a href="{% url 'user_settings' %}" tabindex="-1">
25 {{ request.user.username }}
29 {% if request.user.is_staff %}
30 <li><a href="{% url 'admin:index' %}" tabindex="-1">Administracja</a></li>
31 <li><a class='edit-links-toggle' href="#" tabindex="-1">Edycja</a></li>
33 <li><a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}" tabindex="-1">Wyloguj się</a></li>
36 <a href="{% url 'user_settings' %}" class="user">
37 {% if request.user.is_staff %}
38 <img src="{% static '2022/images/icons/user-staff.svg' %}">
39 {% elif request.user %}
40 <img src="{% static '2022/images/icons/user-vip.svg' %}">
42 <img src="{% static '2022/images/icons/user.svg' %}">
46 <div class="l-navigation__login">
47 <a href='{% url 'login' %}?next={{ request.path }}'>Zaloguj się</a>
49 <a href='{% url 'register' %}?next={{ request.path }}'>Załóż konto</a>
52 <button class="l-navigation__button js-menu" aria-label="Menu">
53 <span class="c-hamburger">
54 <span class="bar"></span>
58 <div class="l-navigation__menu">
59 <div class="scrollable">
60 <div class="l-container">
61 <div class="l-navigation__menu__links">
62 {% cache 30 menu LANGUAGE_CODE %}
64 <li><strong>Katalog</strong></li>
68 <li><strong>Włącz się</strong></li>
69 {% menu 'Włącz się' %}
72 <li><strong>Aktualności</strong></li>
73 {% latest_blog_posts %}
74 {% menu 'Aktualności' %}
77 <li><strong>Narzędzia</strong></li>
78 {% menu 'Narzędzia' %}
81 <li><strong>O nas</strong></li>
87 <div class="l-navigation__menu__info">
89 <div class="l-navigation__menu__book">
93 <div class="l-navigation__menu__social">
96 <a href="https://www.facebook.com/wolnelektury/"
97 title="Facebook" tabindex="-1" target="_blank">
98 <i class="icon icon-fb" aria-hidden="true"></i>
102 <a href="https://www.youtube.com/c/WolneLekturyYT/"
103 title="YouTube" tabindex="-1" target="_blank">
104 <i class="icon icon-yt" aria-hidden="true"></i>
108 <a href="https://www.instagram.com/wolnelektury/"
109 title="Instagram" tabindex="-1" target="_blank">
110 <i class="icon icon-ig" aria-hidden="true"></i>
114 <a href="https://twitter.com/wolnelektury"
115 title="Twitter" tabindex="-1" target="_blank">
116 <i class="icon icon-tt" aria-hidden="true"></i>
128 {% block under-menu %}{% endblock %}