mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
91cfcb8229
Remove hardcoded references to pages and SiteTree Remove assumption that records are versioned Remove or validate assumptions about methods on the model class Improve general architecture of CMSMain
19 lines
849 B
Scheme
19 lines
849 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"><ins class="jstree-icon font-icon-right-dir"> </ins><strong>$rootTitle</strong>
|
|
<% end_if %>
|
|
<% if $limited %>
|
|
<ul><li class="readonly">
|
|
<span class="item">
|
|
<%t SilverStripe\\CMS\\Controllers\\CMSMain.TOO_MANY_RECORDS 'Too many records' %>
|
|
(<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 %>
|