{% 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 path = path('talent_dashboard') %}
        {% elseif is_granted('ROLE_COMPANY') %}
            {% set path = path('company_dashboard') %}
        {% elseif is_granted('ROLE_TERRITORY') %}
            {% set path = path('territory_dashboard') %}
        {% elseif is_granted('ROLE_ADMIN') %}
            {% set path = path('admin_dashboard') %}
        {% endif %}
        <a class="btn button-round-small" href="{{ path }}">
            <i class="material-icons">perm_identity</i>
            <span>Mon compte</span>
        </a>
    </div>
{% endif %}