{% load admin_style_tags i18n %}
{% load static from static %}
<div id="header-logo">
    <a class="icon-logo" href="/"><span>django CMS</span></a>
</div>
<h1>{{ site_header|default:_('Django Administration') }}</h1>
<ul id="site-name" class="toolbar-item toolbar-item-navigation">
    <li>
        <a class="menu-item" href="">{{ site_header|default:_('Django Administration') }}</a>
        <ul class="submenu">
            {% if user.is_active and user.is_staff %}
                {% url 'django-admindocs-docroot' as docsroot %}
                {% if docsroot %}
                    <li>
                        <a href="{{ docsroot }}">{% trans 'Documentation' %}</a>
                    </li>
                    <li class="toolbar-item-navigation-break">-----</li>
                {% endif %}
            {% endif %}
            {% if user.has_usable_password %}
                <li>
                    <a href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</a>
                </li>
                <li class="toolbar-item-navigation-break">-----</li>
            {% endif %}
            {% if user.is_authenticated %}
                <li>
                    <form method="POST" action="{% url 'admin:logout' %}">
                        {% csrf_token %}
                        <button type="submit">
                            <b>{% trans 'Log out' %} {% firstof user.get_short_name user.get_username %}</b>
                        </button>
                    </form>
                </li>
            {% endif %}
        </ul>
    </li>
</ul>
<div id="header-btn">
    <a href="/" class="icon-arrow-right btn js-header-link">
        {% trans 'Open' %} {% current_site_name %}
    </a>
</div>
