{namespace neos=Neos\Neos\ViewHelpers}
<html>
    <head>
        <title>{neos:backend.translate(id: 'service.nodes.title', value: 'Nodes')}</title>
        <meta charset="UTF-8"/>
    </head>
    <body>
        <div>
            <h1>{neos:backend.translate(id: 'service.nodes.title', value: 'Nodes')}</h1>
            <ul class="nodes">
                <f:for each="{nodes}" as="node">
                    <li class="node">
                        <span class="node-path">{node.path}</span>
                        <f:alias map="{documentNode: '{neos:node.closestDocument(node: node)}'}">
                            <f:if condition="{documentNode}">
                                <f:then>
                                    <a href="{neos:uri.node(node: documentNode, absolute: true)}" class="node-frontend-uri">
                                        <f:render section="breadcrumb" arguments="{node: documentNode}" />
                                    </a>
                                </f:then>
                                <f:else>
                                    <a class="node-frontend-uri">
                                        {neos:backend.translate(id: 'service.nodes.noPublicUrl', value: 'This node cannot be accessed through a public URL')}
                                    </a>
                                </f:else>
                            </f:if>
                        </f:alias>
                        <label class="node-label">{neos:node.label(node: node)}</label>
                        (<span class="node-identifier">{node.aggregateId.value}</span>)
                        [<span class="node-type">{node.nodeTypeName.value}</span>]
                        <f:link.action rel="node-show" controller="Service\Nodes" action="show" arguments="{identifier: node.aggregateId.value}" format="html">{neos:backend.translate(id: 'service.nodes.show', value: 'Show')}</f:link.action>
                    </li>
                </f:for>
            </ul>
        </div>
    </body>
</html>
<f:section name="breadcrumb"><f:if condition="{node.parent} && {node.parent.depth} > 1"><f:render section="breadcrumb" arguments="{node: node.parent}" /> &gt; </f:if>{neos:node.label(node: node)}</f:section>

