summaryrefslogtreecommitdiffstats
path: root/templates/html/htmljsnavtree.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/html/htmljsnavtree.tpl')
-rw-r--r--templates/html/htmljsnavtree.tpl16
1 files changed, 14 insertions, 2 deletions
diff --git a/templates/html/htmljsnavtree.tpl b/templates/html/htmljsnavtree.tpl
index 3d11175..fef1819 100644
--- a/templates/html/htmljsnavtree.tpl
+++ b/templates/html/htmljsnavtree.tpl
@@ -25,9 +25,21 @@
var NAVTREE =
[
{% recursetree index.nav %}
- [ "{{ node.name }}", {% if node.file %}"{% if node.isReference %}{{ node.externalReference }}{% endif %}{{ node.file|decodeURL }}{{ config.HTML_FILE_EXTENSION }}{% if node.anchor %}#{{ node.anchor }}{% endif %}"{% else %}null{% endif %},{% if not node.is_leaf_node %} [
+ {% set varName=node.file %}
+ {% if node.anchor %}
+ {% update varName=varName|append:'_'|append:node.anchor %}
+ {% endif %}
+ {% if node.parent %}
+ {% if node.parent.file==node.file %}
+ {% update varName=varName|append:'_dup' %}
+ {% endif %}
+ {% endif %}
+[ "{{ node.name }}",{% if node.file %}"{% if node.isReference %}{{ node.externalReference }}{% endif %}{{ node.file|decodeURL }}{{ config.HTML_FILE_EXTENSION }}{% if node.anchor %}#{{ node.anchor }}{% endif %}"{% else %}null{% endif %},{% if not node.is_leaf_node %}{% if node.separateIndex %}"{{ varName }}"{% else %} [
{{ children }}
- ]{% else %} null{% endif %} ]{% if not node.last %},{% endif %}
+ ]{% endif %}{% else %} null{% endif %} ]{% if not node.last %},{% endif %}
+ {% if node.separateIndex %}
+ {% create varName|append:'.js' from 'htmljsnavpage.tpl' %}
+ {% endif %}
{% endrecursetree %}
];