mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
8ec551e57b
* Various refactoring to support viewing list view in context menu and suppressed tree node * Bugfixes per Maxime review * Fix URL param collision * Fix show in list on detail view * Remove AJAX for show in list. Use hard refresh to keep URL state
19 lines
788 B
Scheme
19 lines
788 B
Scheme
<% if not $node.IsInDB %><%-- Only render root node if it's the true root --%>
|
|
<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">
|
|
<%t SilverStripe\\CMS\\Controllers\\CMSMain.TOO_MANY_PAGES 'Too many pages' %>
|
|
(<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>)
|
|
</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 %>
|