{% if not app.user or is_granted('ROLE_TALENT_TMP')%}
    <div class="header-link header-link-signin right-align">
        {% if app.request.get('_route') == "fos_user_security_login" %}
            {% set href = "" %}
        {% else %}
            {% set href = "#modal_login" %}
        {% endif %}
        <a class="btn button-round-small" href="{{ href }}">
            <i class="fa fa-power-off" aria-hidden="true"></i>
            <span>Connexion</span>
        </a>
    </div>
{% else %}
    <div class="header-link header-link-signin right-align">
        {% if is_granted('ROLE_TALENT') %}
            {% set pathDash = path('talent_dashboard') %}
        {% elseif is_granted('ROLE_COMPANY') %}
            {% set pathDash = path('company_dashboard') %}
        {% elseif is_granted('ROLE_TERRITORY') %}
            {% set pathDash = path('territory_dashboard') %}
        {% elseif is_granted('ROLE_ADMIN') %}
            {% set pathDash = path('admin_dashboard') %}
        {% else %}
            {% set pathDash = path('talent_dashboard') %}
        {% endif %}
        <a class="btn button-round-small" href="{{ pathDash }}">
            <i class="material-icons">perm_identity</i>
            <span>Mon compte</span>
        </a>
    </div>
{% endif %}