2017-04-11 23:33:56 +02:00
|
|
|
<% if not $node.IsInDB %><%-- Only render root node if it's the true root --%>
|
2017-04-06 07:38:15 +02:00
|
|
|
<ul><li id="record-0" data-id="0" class="Root nodelete"><strong>$rootTitle</strong>
|
|
|
|
<% end_if %>
|
|
|
|
<% if $limited %>
|
|
|
|
<ul><li class="readonly">
|
|
|
|
<span class="item">
|
2017-05-08 07:57:24 +02:00
|
|
|
<%t SilverStripe\\CMS\\Controllers\\CMSMain.TOO_MANY_PAGES 'Too many pages' %>
|
2018-08-14 06:08:36 +02:00
|
|
|
(<a href="{$listViewLink.ATT}" class="subtree-list-link" data-id="$node.ID" data-pjax-target="Content"><%t SilverStripe\\CMS\\Controllers\\CMSMain.SHOW_AS_LIST 'show as list' %></a>)
|
2017-04-06 07:38:15 +02:00
|
|
|
</span>
|
|
|
|
</li></ul>
|
|
|
|
<% else_if $children %>
|
|
|
|
<ul>
|
|
|
|
<% loop $children %><% include SilverStripe\\CMS\\Controllers\\CMSMain_TreeNode %><% end_loop %>
|
|
|
|
</ul>
|
|
|
|
<% end_if %>
|
|
|
|
<% if not $node.IsInDB %>
|
|
|
|
</li></ul>
|
|
|
|
<% end_if %>
|