[freeside-commits] freeside/torrus/templates default-dir.html, 1.6, 1.7
Erik Levinson
levinse at wavetail.420.am
Sun Feb 6 21:20:43 PST 2011
Update of /home/cvs/cvsroot/freeside/torrus/templates
In directory wavetail.420.am:/tmp/cvs-serv25880/torrus/templates
Modified Files:
default-dir.html
Log Message:
torrus, UI, RT10574
Index: default-dir.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/torrus/templates/default-dir.html,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -w -d -r1.6 -r1.7
--- default-dir.html 5 Feb 2011 06:32:36 -0000 1.6
+++ default-dir.html 7 Feb 2011 05:20:41 -0000 1.7
@@ -4,13 +4,26 @@
[% INCLUDE legend %]
-[% IF matches(thepath,'Interface_Counters/$') %]
- [% freesideComponent('/elements/init_overlib.html') %]
-[% END %]
-[% IF matches(thepath,'Routers/$') %]
- [% freesideComponent('/elements/init_overlib.html') %]
- [% popup_link('nms-add_router.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(nodeName(token)),nms,serviceids);
+ END;
+ IF matches(thepath,'Routers/$');
+ freesideComponent('/elements/init_overlib.html');
+ popup_link('nms-add_router.html');
+ END;
+%]
<P>Directories you can jump to:</P>
<DIV CLASS="Listing">
@@ -50,7 +63,7 @@
thisIsAlias ? '</EM>':''; %]
[% IF matches(thepath,'Interface_Counters/$') %]
<FONT SIZE="-1">
- [% popup_link('nms-add_iface.html',nodeName(parent(token)),uri_escape(nodeName(child))) %]
+ [% popup_link('nms-add_iface.html',router,uri_escape(nodeName(child)),nms,serviceids) %]
</FONT>
[% END %]
</SPAN>
More information about the freeside-commits
mailing list