[BUGFIX] beuser: Remove col-icon class if icon is an avatar
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Partials / BackendUser / OnlineListRow.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2 {namespace bu = TYPO3\CMS\Beuser\ViewHelpers}
3 {namespace core = TYPO3\CMS\Core\ViewHelpers}
4
5 <f:for each="{onlineUser.sessions}" as="session" iteration="it">
6 <tr>
7 <f:if condition="{it.isFirst}">
8 <f:then>
9 <td>
10 <a href="#" class="t3-js-clickmenutrigger" data-table="be_users" data-uid="{onlineUser.backendUser.uid}" data-listframe="1" title="{f:if(condition: '{onlineUser.backendUser.description}', then: '{onlineUser.backendUser.description} ')}(id={onlineUser.backendUser.uid})">
11 <be:avatar backendUser="{onlineUser.backendUser.uid}" showIcon="true" />
12 </a>
13 </td>
14 <td class="col-title">
15 <b>{onlineUser.backendUser.userName}</b>
16 <span class="label label-success"><f:translate key="online" /></span><br />
17 {onlineUser.backendUser.realName}
18 </td>
19 </f:then>
20 <f:else>
21 <td></td>
22 <td class="col-title"></td>
23 </f:else>
24 </f:if>
25 <td>
26 <f:format.date format="{dateFormat} {timeFormat}" date="{session.timestamp}" />
27 </td>
28 <td>{session.ip}</td>
29 <td class="col-control">
30 <div class="btn-group" role="group">
31 <f:if condition="{currentSessionId} == {session.id}">
32 <f:else>
33 <f:link.action
34 class="btn btn-default t3js-modal-trigger"
35 action="terminateBackendUserSession"
36 controller="BackendUser"
37 arguments="{backendUser: onlineUser.backendUser, sessionId: session.id}"
38 data="{severity: 'warning', title: '{f:translate(key: \'endSession\')}', content: '{f:translate(key: \'reallyLogout\')} {onlineUser.backendUser.userName}?', button-close-text: '{f:translate(key: \'LLL:EXT:lang/locallang_common.xlf:cancel\')}'}"
39 >
40 <core:icon identifier="actions-document-close" />
41 <f:translate key="endSession" />
42 </f:link.action>
43 </f:else>
44 </f:if>
45 <a class="btn btn-default" href="#" onclick="top.launchView('be_users', '{onlineUser.backendUser.uid}',''); return false;">
46 <core:icon identifier="actions-document-info" />
47 </a>
48 </div>
49 </td>
50 </tr>
51 </f:for>