    {% if app.user %}

        <a href="{{ path('app_core_user') }}" class="nav-link" title="Profil"><img class='avatar' src="{{ asset('uploads/avatar/' ~ app.user.avatar) }}"></a></li>

        {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MODO') %}
            <a href="{{ path('app_core_config') }}" class="nav-link" title="Configuration"><i class="fa fa-cog fa-fw"></i></a>
        {% endif %}

        {% set permannu = app.session.get('permannu') %}
        
        {% if is_granted('ROLE_ADMIN') or (is_granted('ROLE_MODO') and (permannu=="ROLE_MODO" or permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_ANIM') and (permannu=="ROLE_ANIM" or permannu=="ROLE_USER")) or (is_granted('ROLE_USER') and permannu=="ROLE_USER") %}
        <a href="{{ path('app_core_user_users') }}" class="nav-link" title="Annuaire"><i class="fa fa-address-book fa-fw"></i></a>
        {%endif%}

        <a href="{{ path('app_core_user_group') }}" class="nav-link" title="Groupes"><i class="fa fa-users fa-fw"></i></a>

        <a href="{{ path('app_portal_user_notice_view') }}" class="nav-link" title="Charte"><i class="fa fa-info fa-fw"></i></a>

        {% if fgheader %}
            {% if fguserheader %}
            <a onclick="switchHeader(0)" id="nav-switch" class="nav-link" title="Cacher / Afficher Bannière " style="cursor:pointer"><i class="fa fa-chevron-up fa-fw"></i></a>
            {% else %}
            <a onclick="switchHeader(1)" id="nav-switch" class="nav-link" title="Cacher / Afficher Bannière " style="cursor:pointer"><i class="fa fa-chevron-down fa-fw"></i></a>
            {% endif %}
        {% endif %}

        <a href="{{ path('app_core_logout') }}" class="nav-link" title="Déconnexion"><i class="fa fa-sign-out-alt fa-fw"></i></a>
    {% else %}
        <a href="{{ path('app_portal_user_notice_view') }}" class="nav-link" title="Charte"><i class="fa fa-info fa-fw"></i></a>
        
        {% if moderegistration!="none" and masteridentity=="SQL"%}
            <a href="{{ path('app_core_registration') }}" class="nav-link" title="Inscription"><i class="fa fa-user-plus fa-fw"></i></a>
        {% endif %}
        <a href="{{ path('app_core_login') }}" class="nav-link" title="Connexion"><i class="fa fa-sign-in-alt fa-fw"></i></a>
    {% endif %}