aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
Diffstat (limited to 'view')
-rw-r--r--view/tpl/help.tpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index 96d52e0e9..2faaa3853 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -3,6 +3,20 @@
<h2>{{$title}}</h2>
</div>
<div class="section-content-wrapper" id="doco-content">
+ <h1>Contents</h1>
+ <ul id="doco-top-toc"></ul>
+ <hr>
{{$content}}
</div>
</div>
+
+<script>
+
+ // Generate the table of contents in the side nav menu (see view/tpl/help.tpl)
+ $(document).ready(function () {
+
+ $('#doco-top-toc').toc({content: "#doco-content", headings: "h1,h2,h3,h4"});
+
+ });
+
+</script> \ No newline at end of file