X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=torrus%2Ftemplates%2Fdefault-dir.html;h=bcdc001b45614c6679a16e097834ce0b45a74889;hp=4b653be17502c8dc50b358d1fe4c4802138d7013;hb=406b21cab11a2a89f359d40d10d6b37e60eddc1e;hpb=496df2ad310d0cc5f02df61d2b7d545b79f824d8 diff --git a/torrus/templates/default-dir.html b/torrus/templates/default-dir.html index 4b653be17..bcdc001b4 100644 --- a/torrus/templates/default-dir.html +++ b/torrus/templates/default-dir.html @@ -1,8 +1,30 @@ [% PROCESS 'html-incblocks.txt' %] +[% thepath=path(token) %] [% 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; @@ -39,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 %]