<html xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers" data-namespace-typo3-fluid="true">
<span class="toolbar-item-avatar"><be:avatar backendUser="{currentUser.uid}" size="24"/></span>
<f:if condition="{switchUserMode}">
    <f:then>
        <span
            class="toolbar-item-name"
            title="{f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.user.account.switchToUserMode.tooltip')} {currentUser.username}"
        >
            {f:translate(key: 'LLL:EXT:backend/Resources/Private/Language/locallang_toolbar.xlf:toolbarItems.user.account.switchToUserMode.account.prefix')}
            {f:if(condition: '{currentUser.realName}', then: '{currentUser.realName} ({currentUser.username})', else: '{currentUser.username}')}
        </span>
    </f:then>
    <f:else>
        <span class="toolbar-item-name" title="{username}">
            {f:if(condition: '{currentUser.realName}', then: '{currentUser.realName}', else: '{currentUser.username}')}
        </span>
    </f:else>
</f:if>
</html>
