silverstripe-docsviewer/templates/Layout/DocumentationViewer_DocumentationFolder.ss
Will Rossiter 804c67dcaf If a folder has no children, default to menu
This happens in the event of the documentation home page.
2014-09-27 10:14:45 +12:00

55 lines
1.0 KiB
Scheme
Executable File

<div class="box">
<% if Introduction %>
<div class="introduction">
<h1>$Title</h1>
<% if Introduction %>
<p>$Introduction</p>
<% end_if %>
</div>
<% if Breadcrumbs %>
<% include DocumentationBreadcrumbs %>
<% end_if %>
<% else %>
<% if Breadcrumbs %>
<% include DocumentationBreadcrumbs %>
<% end_if %>
<h1>$Title</h1>
<% end_if %>
<% include DocumentationVersions %>
<% if VersionWarning %>
<% include DocumentationVersion_warning %>
<% end_if %>
<% include DocumentationTableContents %>
<% if Children %>
<div class="documentation_children">
<ul>
<% loop Children %>
<li>
<h3><a href="$Link">$Title</a></h3>
<% if Summary %><p>$Summary</p><% end_if %>
</li>
<% end_loop %>
</ul>
</div>
<% else %>
<div class="documentation_children">
<ul>
<% loop Menu %>
<li>
<h3><a href="$Link">$Title</a></h3>
<% if Summary %><p>$Summary</p><% end_if %>
</li>
<% end_loop %>
</ul>
</div>
<% end_if %>
<% include DocumentationNextPrevious %>
</div>