summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlnavtree.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html/htmlnavtree.tpl')
-rw-r--r--templates/html/htmlnavtree.tpl22
1 files changed, 22 insertions, 0 deletions
diff --git a/templates/html/htmlnavtree.tpl b/templates/html/htmlnavtree.tpl
new file mode 100644
index 0000000..8da89a2
--- /dev/null
+++ b/templates/html/htmlnavtree.tpl
@@ -0,0 +1,22 @@
+var NAVTREE =
+[
+ [ "{% if mainPage.title %}mainPage.title|jsstring{% else %}{{ tr.mainPage }}{% endif %}",
+ "index{{ config.HTML_FILE_EXTENSION }}",
+ ]
+];
+
+var NAVTREEINDEX =
+[
+{# write first entry of each sub index #}
+{% for entries in navTree.subindices %}
+ "{{ entries[0].url }}"{% if not forloop.last %},{% endif %}
+{% endfor %}
+ ]
+];
+
+{# write all sub indices #}
+{% for entries in navTree.subindices %}
+ {% with idx=forloop.counter0 %}
+ {% create idx|prepend:'navtreeindex'|append:'.js' from htmlnavindex.tpl' %}
+ {% endwith %}
+{% endfor %}