X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=torrus%2Ftemplates%2Fdefault-dir.html;h=bcdc001b45614c6679a16e097834ce0b45a74889;hp=91e6e4425b71f5992e796d22f9bc0ff045dfe97b;hb=406b21cab11a2a89f359d40d10d6b37e60eddc1e;hpb=ec681a87b33fe272276f367aea4da3ed4d689605 diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html index 91e6e4425..bcdc001b4 100644 --- a/torrus/templates/default-dir.html +++ b/torrus/templates/default-dir.html @@ -4,9 +4,26 @@ [% INCLUDE legend %] -[% IF matches(thepath,'Interface_Counters/$') %] - [% freesideComponent('/elements/init_overlib.html') %] -[% END %] +[% + 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:

@@ -46,7 +63,7 @@ thisIsAlias ? '':''; %] [% IF matches(thepath,'Interface_Counters/$') %] - [% popup_link('nms-add_iface.html',nodeName(parent(token)),uri_escape(nodeName(child))) %] + [% popup_link('nms-add_iface.html',router,uri_escape(slash2underscore(nodeName(child))),nms,serviceids) %] [% END %]