{% load static %}
{% load i18n %}
{% load navactive %}

<nav class="navbar navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#membertools-admin-nav-bar" aria-expanded="false">
                <span class="sr-only">{% translate "Toggle navigation" %}</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>

            <a class="navbar-brand" href="{% url 'membertools_admin:index' %}">{{ app_title }}</a>
        </div>

        <div class="collapse navbar-collapse" id="membertools-admin-nav-bar">
            <ul class="nav navbar-nav">
                {% if perms.membertools.queue_admin_access %}
                <li class="{% navactive request 'membertools_admin:queue' %}">
                    <a href="{% url 'membertools_admin:queue' %}">{% translate "Queue" %}</a>
                </li>
                {% endif %}
                {% if perms.membertools.character_admin_access %}
                <li class="{% navactive request 'membertools_admin:char_detail_index' %}">
                    <a href="{% url 'membertools_admin:char_detail_index' %}">{% translate "Characters" %}</a>
                </li>
                {% endif %}
                {% if perms.membertools.application_admin_access %}
                <li class="{% navactive request 'membertools_admin:archive' %}">
                    <a href="{% url 'membertools_admin:archive' %}">{% translate "Applications" %}</a>
                </li>
                {% endif %}
            </ul>
        </div>
    </div>
</nav>
