{% if user.is_authenticated %}
<li>
    <li class="dropdown">
        <a href="#" class="dropdown-toggle"
            data-toggle="dropdown" title="User menu">
            {% include "oneevent/navbar_auth_avatar.html" %}
            <span class="caret"></span>
        </a>
        <ul class="dropdown-menu" role="menu">
            {% include "oneevent/navbar_auth_extra_actions.html" %}
            {% if user.is_staff %}
            <li>
                <a href="{% url 'admin:index' %}">
                    <span class="glyphicon glyphicon-cog"></span>
                    <span>Admin</span>
                </a>
            </li>
            <li class="divider"></li>
            {% endif %}
            <li>
                <a href="{% url 'logout' %}?next={% url 'index' %}">
                    <span class="glyphicon glyphicon-log-out"></span>
                    <strong>Logout</strong>
                </a>
            </li>
        </ul>
    </li>
</li>
{% else %}
<li>
    <a href="{% url 'login' %}?next={% url 'index' %}">
        <span class="glyphicon glyphicon-log-in"></span>
        <span class="">Login</span>
    </a>
</li>
{% endif %}
