diff options
Diffstat (limited to 'lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml b/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml new file mode 100644 index 0000000000..726423a341 --- /dev/null +++ b/lib/rdoc/generator/template/darkfish/_sidebar_sections.rhtml @@ -0,0 +1,10 @@ +<% unless klass.sections.length == 1 then %> +<nav id="sections-section" class="section"> + <h3 class="section-header">Sections</h3> + <ul class="link-list"> + <% klass.sort_sections.each do |section| %> + <li><a href="#<%= section.aref %>"><%= h section.title %></a></li> + <% end %> + </ul> +</nav> +<% end %> |