summaryrefslogtreecommitdiffstats
path: root/templates/html/htmlnavtree.tpl
blob: 9713232d5848868ad47359be73e9b1dd94ff1a1f (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 %}