- <div id="header-wrapper">
- <header id="main">
- <a href="/" id="logo">
- <img src="{% static 'img/logo-neon.png' %}" alt="Wolne Lektury" />
- </a>
-
- <p id="user-info">
- {% user_username as user_username %}
- {% user_is_staff as user_is_staff %}
- {{ user_username.if }}{% trans "Welcome" %}, <span class="hidden-box-wrapper">
- <a href="{% url 'user_settings' %}" class="hidden-box-trigger">
- <strong>{{ user_username }}</strong>
- </a>
- <span id="user-menu" class="hidden-box">
- <a href="{% url 'account_set_password' %}">{% trans "Password" %}</a><br/>
- <a href="{% url 'account_email' %}">{% trans "E-mail" %}</a><br/>
- <a href="{% url 'socialaccount_connections' %}">{% trans "Social accounts" %}</a><br/>
- </span>
- </span> | <a href="{% url 'social_my_shelf' %}" id="user-shelves-link">{% trans "My shelf" %}</a>
- {{ user_username.endif }}
- {{ user_is_staff.if }} | <a href="/admin/">{% trans "Administration" %}</a>
- {{ user_is_staff.endif }}
- {{ user_username.if }} | <a href="{% url 'logout' %}?next={% block logout %}{{ request.get_full_path }}{% endblock %}">{% trans "Logout" %}</a>
- {{ user_username.else }}
- <a href="{% url 'login' %}?next={{ request.path }}" id="login" class="ajaxable">{% trans "Sign in" %}</a> / <a href="{% url 'register' %}?next={{ request.path }}" id="register" class="ajaxable">{% trans "Register" %}</a>
- {{ user_username.endif }}
- </p>
-
- <p id="tagline">
- {% url 'book_list' as b %}
- {% url 'infopage' 'prawa' as r %}
- {% count_books book_count %}
- {% blocktrans count book_count as c %}
- <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
- {% plural %}
- <a href='{{b}}'>{{c}}</a> free readings you have <a href='{{r}}'>right to</a>
- {% endblocktrans %}
- </p>
-
- <form id="search-area" action="{% url 'search' %}">
- <div id="search-field">
- <label for="search">{{search_form.q.label}}</label>
- {{search_form.q}}
- </div><button type='submit'>{% trans "Search" %}</button>
- </form>
-
- </header>
- </div>