{namespace bu = TYPO3\CMS\Beuser\ViewHelpers}

<tr class="db_list_normal">
	<td>
		<b>{onlineUser.backendUser.userName}</b>
	</td>
	<td>
		{onlineUser.backendUser.realName}
	</td>
	<td>
		<a href="#" onclick="top.launchView('be_users', '{onlineUser.backendUser.uid}',''); return false;">
			<bu:SpriteManagerIcon iconName="actions-document-info" />
		</a>
	</td>

	<f:for each="{onlineUser.sessions}" as="session" key="sessionKey">
		<f:if condition="{sessionKey} > 0">
			<f:then>
				<tr class="db_list_normal">
					<td colspan="3"></td>
			</f:then>
		</f:if>
		<td>
			<f:format.date format="{dateFormat} {timeFormat}">{session.timestamp}</f:format.date>
		</td>
		<td>{session.ip}</td>
		<td>
			<f:if condition="{currentSessionId} == {session.id}">
				<f:else>
					<f:link.action
						action="terminateBackendUserSession"
						controller="BackendUser"
						arguments="{backendUser: onlineUser.backendUser, sessionId: session.id}"
						onclick="javascript:return confirm('{f:translate(key: \"reallyLogout\")} {onlineUser.backendUser.userName}?');"
					>
						<bu:spriteManagerIcon iconName="actions-document-close" />
						<f:translate key="endSession">End session</f:translate>
					</f:link.action>
				</f:else>
			</f:if>
		</td>
	</tr>
</f:for>