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