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

<nav class="navbar navbar-default navbar-static-top auth-navbar-top" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".auth-menus-collapse">
                <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">
                {% if TNNT_TEMPLATE_ENTITY_ID == 1 %}
                    <img class="img-rounded" src="{{ TNNT_TEMPLATE_AA_LOGO }}?size=32" style="display: inline-block;" height="32" width="32" alt="{{ TNNT_TEMPLATE_ENTITY_NAME }}">
                {% else %}
                    {% if TNNT_TEMPLATE_ENTITY_TYPE == 'alliance' %}
                        <img class="img-rounded" src="{{ TNNT_TEMPLATE_ENTITY_ID|alliance_logo_url:32 }}" style="display: inline-block;" height="32" width="32" alt="{{ TNNT_TEMPLATE_ENTITY_NAME }}">
                    {% elif TNNT_TEMPLATE_ENTITY_TYPE == 'corporation' %}
                        <img class="img-rounded" src="{{ TNNT_TEMPLATE_ENTITY_ID|corporation_logo_url:32 }}" style="display: inline-block;" height="32" width="32" alt="{{ TNNT_TEMPLATE_ENTITY_NAME }}">
                    {% endif %}
                {% endif %}
                {{ SITE_NAME }}
            </a>
        </div>

        <div class="collapse navbar-collapse auth-menus-collapse">
            <ul class="nav navbar-nav navbar-right navbar-pills">
                <li class="{% navactive request 'notifications:' %}" id="menu_item_notifications">
                    {% include 'allianceauth/notifications_menu_item.html' %}
                </li>

                {% include 'allianceauth/top-menu-character-dropdown.html' %}
            </ul>
        </div>
    </div>
</nav>
