[TASK] Add avatar to more places
[Packages/TYPO3.CMS.git] / typo3 / sysext / beuser / Resources / Private / Partials / Permission / Ownername.html
1 {namespace be = TYPO3\CMS\Backend\ViewHelpers}
2 <span id="o_{pageId}">
3 <a
4 class="ug_selector changeowner"
5 data-page="{pageId}"
6 data-owner="{userId}"
7 data-username="{username}"
8 >
9 <f:if condition="{userId} == 0">
10 <f:then>
11 <f:comment>
12 No owner set -> [not set]
13 </f:comment>
14 <span class="not_set">
15 [<f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:notSet" />]
16 </span>
17 </f:then>
18 <f:else>
19 <f:if condition="{username}">
20 <f:then>
21 <f:comment>
22 A user name can be resolved
23 </f:comment>
24 {username -> f:format.crop(maxCharacters:20)}
25 <be:avatar backendUser="{userId}" />
26 </f:then>
27 <f:else>
28 <f:comment>
29 User was deleted -> [deleted]
30 </f:comment>
31 <span class="not_set" title="{userId}">
32 [<f:translate key="LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:deleted" />]
33 </span>
34 </f:else>
35 </f:if>
36 </f:else>
37 </f:if>
38 </a>
39 </span>