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

<f:layout name="Default" />

<f:section name="iconButtons">
	<f:link.action controller="BackendUser" action="online">{onlineUser.backendUser.realName}</f:link.action>
</f:section>

<f:section name="content">
	<h3><f:translate key="activeSessions">Active Sessions</f:translate></h3>

	<table border="0" cellspacing="0" cellpadding="0" class="typo3-dblist">
		<tr class="t3-row-header">
			<td>
				<f:translate key="userName">Username</f:translate>
			</td>
			<td colspan="2">
				<f:translate key="realName">Real name</f:translate>
			</td>
			<td>
				<f:translate key="lastAccess">Last access</f:translate>
			</td>
			<td>
				<f:translate key="ipAddress">IP address</f:translate>
			</td>
			<td></td>
		</tr>

		<f:for each="{onlineUsersAndSessions}" as="onlineUser">
			<f:render partial="BackendUser/OnlineListRow" arguments="{onlineUser: onlineUser, dateFormat: dateFormat, timeFormat: timeFormat, currentSessionId: currentSessionId}" />
		</f:for>
	</table>
</f:section>