X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=torrus%2Ftemplates%2Fdefault-dir.html;h=bcdc001b45614c6679a16e097834ce0b45a74889;hp=ef6358d1e1dc94cd60e4fcaa46d18cab987f5c1b;hb=406b21cab11a2a89f359d40d10d6b37e60eddc1e;hpb=74e058c8a010ef6feb539248a550d0bb169c1e94
diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html
index ef6358d1e..bcdc001b4 100644
--- a/torrus/templates/default-dir.html
+++ b/torrus/templates/default-dir.html
@@ -1,11 +1,30 @@
[% PROCESS 'html-incblocks.txt' %]
[% thepath=path(token) %]
-[% INCLUDE htmlstart title=thepath printpath=1 %]
-
-
[% xmlnorm(nodeParam(token,'comment')) %]
+[% INCLUDE htmlstart title=xmlnorm(nodeParam(token,'comment')) printpath=1 %]
[% INCLUDE legend %]
+[%
+ IF matches(thepath,'Interface_Counters/$');
+ freesideComponent('/elements/init_overlib.html');
+ nms = load_nms();
+ router = nodeName(parent(token));
+ serviceids = get_serviceids(nms,router);
+ END;
+ IF matches(thepath,'Interface_Counters/.*?/$');
+ nms = load_nms();
+ router = nodeName(parent(parent(token)));
+ serviceids = get_serviceids(nms,router);
+
+ # HACK! this doesn't do what you think it does...
+ popup_link('nms-add_iface.html',router,uri_escape(slash2underscore(nodeName(token))),nms,serviceids);
+ END;
+ IF matches(thepath,'Routers/$');
+ freesideComponent('/elements/init_overlib.html');
+ popup_link('nms-add_router.html');
+ END;
+%]
+
Directories you can jump to:
[% hasLeaves = 0; hasSubtrees = 0;
@@ -42,6 +61,11 @@
[% nodeName(child) %]
[% hidden ? '':'';
thisIsAlias ? '':''; %]
+ [% IF matches(thepath,'Interface_Counters/$') %]
+
+ [% popup_link('nms-add_iface.html',router,uri_escape(slash2underscore(nodeName(child))),nms,serviceids) %]
+
+ [% END %]
[% IF comment %]