summaryrefslogtreecommitdiff
path: root/torrus/templates/overview-subleaves.html
diff options
context:
space:
mode:
Diffstat (limited to 'torrus/templates/overview-subleaves.html')
-rw-r--r--torrus/templates/overview-subleaves.html47
1 files changed, 47 insertions, 0 deletions
diff --git a/torrus/templates/overview-subleaves.html b/torrus/templates/overview-subleaves.html
new file mode 100644
index 000000000..345e06fd9
--- /dev/null
+++ b/torrus/templates/overview-subleaves.html
@@ -0,0 +1,47 @@
+[% PROCESS 'html-incblocks.txt' %]
+[% INCLUDE setdate %]
+[% ovs=variables.OVS; clearVar('OVS'); global.bookmarkVars=['OVS',ovs];
+ thepath=path(token) %]
+[% INCLUDE htmlstart title=thepath printpath=1 %]
+
+<H1>[% p = 'overview-page-title-' _ ovs; nodeParam(token, p, 1) %]</H1>
+
+[% INCLUDE variables %]
+
+[% INCLUDE legend %]
+
+[%
+ FOREACH child = sortTokens(children(token));
+ childpath = path(child);
+ p = 'overview-subleave-name-' _ ovs;
+ FOREACH childname = nodeParam(token, p,1).split('\s*,\s*');
+ ovwpath = childpath _ childname;
+ IF nodeExists(ovwpath);
+ ovwtoken = pathToken(ovwpath);
+
+ urltoken = ovwtoken;
+ p = 'overview-direct-link-' _ ovs;
+ IF nodeParam(token, p, 1) == 'yes';
+ urltoken = child;
+ p = 'overview-direct-link-view-' _ ovs;
+ urlview = nodeParam(token, p, 1);
+ END;
+
+ INCLUDE shortgraph
+ token=ovwtoken
+ urltoken=urltoken
+ urlview=urlview
+ nodename=nodeName(child)
+ comment=nodeParam(child,'comment',1);
+ END;
+ END;
+ END
+%]
+
+<DIV CLASS="BottomShortcuts">
+[% INCLUDE shortcut url=url(token) text="Default view"
+ title="Restore default subtree view" %]
+</DIV>
+
+[% INCLUDE bottomline %]
+[% INCLUDE htmlend %]