X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=torrus%2Ftemplates%2Fdefault-dir.html;h=21f8e444687f6db744317951ef766a460ae1a37d;hb=6c853dd55563ae035c1bf17695d3cb2ad3452110;hp=7df195a435496cb79d06478f16ca0eb366bb2514;hpb=5c06010256aa88b623aa806b5ecc5d429365db0d;p=freeside.git diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html index 7df195a43..21f8e4446 100644 --- a/torrus/templates/default-dir.html +++ b/torrus/templates/default-dir.html @@ -4,6 +4,27 @@ [% 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; @@ -40,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 %]