Sha256: d79490e6f3f20a40c0aa43d5a7c795b0340a996e316a97e737e481bdb963791d

Contents?: true

Size: 390 Bytes

Versions: 15

Compression:

Stored size: 390 Bytes

Contents

<%
comment = current.respond_to?(:comment_location) ? current.comment_location :
          current.comment
table = current.parse(comment).table_of_contents
if table.length > 1
%><%
  table.each_with_index do |heading, i|
    next if heading.level > @old_cfg['toc_max']
%><a
href="#<%= heading.label(current) %>"><%=
    i == 0 ? "top" : heading.plain_html %></a>
<%
  end %><br /><%
end
%>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
olddoc-1.9.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.8.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.7.1 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.7.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.6.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.5.1 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.5.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.4.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.3.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.2.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.1.2 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.1.1 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.1.0 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.0.1 lib/oldweb/_sidebar_table_of_contents.rhtml
olddoc-1.0.0 lib/oldweb/_sidebar_table_of_contents.rhtml