silverstripe-docsviewer/templates/Includes/DocumentationSidebar.ss
David Alexander adc905c490 Better solution for doc.silverstripe.org/issues/79
The better solution I proposed for https://github.com/silverstripe/doc.silverstripe.org/issues/79 seems to have been missed in the confusion of my PR titles.
2015-11-17 14:41:00 +13:00

66 lines
1.9 KiB
Scheme

<div id="sidebar">
<div class="box">
$DocumentationSearchForm
<ul class="nav">
<% loop Menu %>
<li><a href="$Link" class="top">Home</a></li>
<% if DefaultEntity %>
<% loop Children %>
<li class="$LinkingMode <% if Last %>last<% end_if %>">
<a href="$Link" class="top">$Title</a>
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a>
<% if LinkingMode == section || 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 %>
</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>
<% if LinkingMode == section || LinkingMode == current %>
<% if Children %>
<ul class="$FirstLast">
<% loop Children %>
<li><a href="$Link" class="$LinkingMode">$Title</a>
<% if LinkingMode == section || 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 %>
</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>