silverstripe-docsviewer/templates/Includes/DocumentationSidebar.ss

42 lines
1.1 KiB
Scheme
Raw Normal View History

2014-09-07 10:35:08 +02:00
<div id="sidebar">
<div class="box">
<ul class="nav">
<% loop Entities %>
<% if DefaultEntity %>
2014-09-07 12:14:10 +02:00
<% loop Children %>
<li class="$LinkingMode $FirstLast">
<a href="$Link" class="top">$Title</a>
<% if LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_loop %>
</ul><% end_if %>
<% end_if %>
</li>
<% end_loop %>
2014-09-07 10:35:08 +02:00
<% else %>
2014-09-07 12:14:10 +02:00
<li class="$LinkingMode $FirstLast"><a href="$Link" class="top">$Title <% if IsFolder %><span class="is-folder">&#9658;</span><% end_if %></a>
2014-09-07 10:35:08 +02:00
<% if LinkingMode == current %>
<% if Children %>
2014-09-07 12:14:10 +02:00
<ul class="$FirstLast">
2014-09-07 10:35:08 +02:00
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_loop %>
</ul><% end_if %>
<% end_if %>
</li>
<% end_if %>
<% end_loop %>
</ul>
</div>
<div class="no-box">
<ul class="minor-nav">
<li><a href="{$Link(all)}">Documentation Index</a></li>
</ul>
</div>
</div>