summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlnavtree.tpl
blob: 8da89a28ccdd0cad6ff69daf273ad633d0eaa997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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 %}