X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=torrus%2Ftemplates%2Fdefault-dir.html;h=21f8e444687f6db744317951ef766a460ae1a37d;hb=6edcac3fb4f343273195460f03a5e3c01feecb2a;hp=ef6358d1e1dc94cd60e4fcaa46d18cab987f5c1b;hpb=74e058c8a010ef6feb539248a550d0bb169c1e94;p=freeside.git
diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html
index ef6358d1e..21f8e4446 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);
+
+ # this displays the link on the port detail page
+ popup_link('nms-add_iface.html',router,uri_escape(iface_underscore(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(iface_underscore(nodeName(child))),nms,serviceids) %]
+
+ [% END %]
[% IF comment %]