InlineRelationList.html 1.63 KB
Newer Older
1 2
{namespace terfe2=T3o\TerFe2\ViewHelpers}

3
<f:if condition="{relations}">
4
    <f:then>
5
        <ul class="list-unstyled mb-0">
6 7 8 9 10
            <f:for each="{relations}" as="relation" iteration="relationIteration">
                <li>
                    <f:if condition="{relation.isExtension}">
                        <f:if condition="{relation.relatedExtension}">
                            <f:then>
11
                                <f:link.action controller="Extension" action="show" arguments="{extension : relation.relatedExtension}">{relation.relationKey}</f:link.action>
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
                                <f:if condition="{relation.versionString}"> ({relation.versionString})</f:if>
                            </f:then>
                            <f:else>
                                {relation.relationKey}
                                <f:if condition="{relation.versionString}"> ({relation.versionString})</f:if>
                            </f:else>
                        </f:if>
                    </f:if>
                    <f:if condition="{relation.isSystem}">
                        <terfe2:format function="strtoupper">{relation.relationKey}</terfe2:format>
                        <f:if condition="{relation.versionString}"> ({relation.versionString})</f:if>
                    </f:if>
                    <f:if condition="{relation.isCore}">
                        TYPO3
                        <f:if condition="{relation.versionString}"> ({relation.versionString})</f:if>
                    </f:if>
                </li>
            </f:for>
        </ul>
    </f:then>
    <f:else>
Markus Sommer's avatar
Markus Sommer committed
33
        <f:translate key="none" />
34
    </f:else>
35
</f:if>