blob: 225f811f0edff0ce410365ea78cf05c76523c420 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<% table = current.parse(current.comment).table_of_contents
if table.length > 1 then %>
<div id="table-of-contents">
<nav class="section">
<h3 class="section-header">Table of Contents</h3>
<ul>
<% table.each do |heading| %>
<li><a href="#<%= heading.aref %>"><%= heading.plain_html %></a>
<% end %>
</ul>
</nav>
</div>
<% end %>
|