{namespace v=FluidTYPO3\Vhs\ViewHelpers}
{namespace ot=Opentalent\OtTemplating\ViewHelpers}

<f:comment><!-- Panneau d'authentification ou espace utilisateur --></f:comment>

<div class="user-toolbar">
    <f:security.ifAuthenticated>
        <f:then>

            <div class="dropdown">
                <a href="#" class="user-toolbar-username">
                    <i class="fa fa-user"></i>
                    {user.username}
                    <i class="fa fa-caret-down"></i>
                </a>

                <ul class="dropdown-menu">
                    <li>
                        <a href="{settings.opentalentDashboardUrl}" target="_blank">
                            <f:translate key="member-area-of-my-structure"/>
                        </a>
                    </li>
                    <li>
                        <f:link.page additionalParams="{logintype:'logout'}">
                            <f:translate key="log-out"/>
                        </f:link.page>
                    </li>
                </ul>
            </div>

        </f:then>
        <f:else>

            <a href="https://www.opentalent.fr/login/" target="_blank" id="login-btn">
                <i class="fas fa-power-off"></i> <f:translate key="login"/>
            </a>

        </f:else>
    </f:security.ifAuthenticated>
</div>
