silverstripe-docsviewer/templates/Includes/DocumentationSidebar.ss

46 lines
1.2 KiB
Scheme
Raw Normal View History

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