mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
29 lines
773 B
Scheme
29 lines
773 B
Scheme
<% if $depth == '0' && not $isSubTree %>
|
|
<ul class="tree">
|
|
<% else_if $depth > 0 %>
|
|
<% if $limited || $children %>
|
|
<ul>
|
|
<% end_if %>
|
|
<% end_if %>
|
|
|
|
<% if $limited %>
|
|
<li><%t SilverStripe\\ORM\\Hierarchy.LIMITED_TITLE 'Too many children ({count}}' count=$count %></li>
|
|
<% else_if $children %>
|
|
<% loop $children %>
|
|
<li id="selector-{$name}-{$id}" data-id="{$id}"
|
|
class="class-{$node.ClassName} {$markingClasses} <% if $disabled %>disabled<% end_if %>"
|
|
>
|
|
<a rel="$node.ID">{$title}</a>
|
|
$SubTree
|
|
</li>
|
|
<% end_loop %>
|
|
<% end_if %>
|
|
|
|
<% if $depth == '0' && not $isSubTree %>
|
|
</ul>
|
|
<% else_if $depth > 0 %>
|
|
<% if $limited || $children %>
|
|
</ul>
|
|
<% end_if %>
|
|
<% end_if %>
|