[TASK] Split action buttons into two groups
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Partials / BackendUser / OnlineListRow.html
1 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
2
3 <f:for each="{onlineUser.sessions}" as="session" iteration="it">
4 <tr>
5 <f:if condition="{it.isFirst}">
6 <f:then>
7 <td class="col-icon">
8 <a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{onlineUser.backendUser.uid}" data-listframe="1" title="id={onlineUser.backendUser.uid}">
9 <bu:spriteIconForRecord table="be_users" object="{onlineUser.backendUser}" />
10 </a>
11 </td>
12 <td class="col-title">
13 <b>{onlineUser.backendUser.userName}</b><br />
14 {onlineUser.backendUser.realName}
15 </td>
16 </f:then>
17 <f:else>
18 <td class="col-icon"></td>
19 <td class="col-title"></td>
20 </f:else>
21 </f:if>
22 <td>
23 <f:format.date format="{dateFormat} {timeFormat}" date="{session.timestamp}" />
24 </td>
25 <td>{session.ip}</td>
26 <td class="col-control">
27 <div class="btn-group" role="group">
28 <f:if condition="{currentSessionId} == {session.id}">
29 <f:else>
30 <f:link.action
31 class="btn btn-default"
32 action="terminateBackendUserSession"
33 controller="BackendUser"
34 arguments="{backendUser: onlineUser.backendUser, sessionId: session.id}"
35 onclick="javascript:return confirm('{f:translate(key: 'reallyLogout')} {onlineUser.backendUser.userName}?');"
36 >
37 <bu:spriteManagerIcon iconName="actions-document-close" />
38 <f:translate key="endSession" />
39 </f:link.action>
40 </f:else>
41 </f:if>
42 <a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{onlineUser.backendUser.uid}',''); return false;">
43 <bu:SpriteManagerIcon iconName="actions-document-info" />
44 </a>
45 </div>
46 </td>
47 </tr>
48 </f:for>