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

<tr>
	<td>
		<a href="#" class="t3js-contextmenutrigger" data-table="be_users" data-uid="{backendUser.uid}" title="{f:if(condition: '{backendUser.description}', then: '{backendUser.description} ')}(id={backendUser.uid})">
			<be:avatar backendUser="{backendUser.uid}" showIcon="TRUE" />
		</a>
	</td>
	<td class="col-title">
		<a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">
			<b>{backendUser.userName}</b>
		</a>
		<f:if condition="{bu:arrayElement(array: onlineBackendUsers, key: backendUser.uid)}">
			<span class="label label-success"><f:translate key="online" /></span>
		</f:if>
		<br />
		<a href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}">{backendUser.realName}</a>
	</td>
	<td>
		<f:if condition="{backendUser.lastLoginDateAndTime}">
			<f:then>
				<f:format.date format="{dateFormat} {timeFormat}">{backendUser.lastLoginDateAndTime}</f:format.date>
			</f:then>
			<f:else>
				<f:translate key="never" />
			</f:else>
		</f:if>
	</td>
	<td class="col-control">
		<div class="btn-group" role="group">
			<a class="btn btn-default" href="{bu:editRecord(parameters: 'edit[be_users][{backendUser.uid}]=edit&returnUrl={returnUrl}')}"><core:icon identifier="actions-open" /></a>
			<f:if condition="{backendUser.currentlyLoggedIn} == 1">
				<f:then>
					<span class="btn btn-default disabled"><core:icon identifier="empty-empty" /></span>
				</f:then>
				<f:else>
					<f:if condition="{backendUser.isDisabled} == 1">
						<f:then>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=0', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.unhide')}"><core:icon identifier="actions-edit-unhide" /></a>
						</f:then>
						<f:else>
							<a class="btn btn-default" href="{bu:issueCommand(parameters: 'data[be_users][{backendUser.uid}][disable]=1', redirectUrl: redirectUrl)}" title="{f:translate(key:'visibility.hide')}"><core:icon identifier="actions-edit-hide" /></a>
						</f:else>
					</f:if>
				</f:else>
			</f:if>
			<bu:removeUser backendUser="{backendUser}" />
		</div>
		<div class="btn-group" role="group">
			<a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{backendUser.uid}'); return false;"><core:icon identifier="actions-document-info" /></a>
		</div>
		<div class="btn-group" role="group">
			<f:if condition="{compareUserUidList.{backendUser.uid}}">
				<f:then>
					<f:link.action action="removeFromCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default">
						<core:icon identifier="actions-remove" size="small"/>
						<f:translate key="compare" />
					</f:link.action>
				</f:then>
				<f:else>
					<f:link.action action="addToCompareList" arguments="{uid: backendUser.uid}" class="btn btn-default"><core:icon identifier="actions-add" size="small"/> <f:translate key="compare" /></f:link.action>
				</f:else>
			</f:if>
			<bu:SwitchUser backendUser="{backendUser}" />
		</div>
	</td>
</tr>
