1 [% PROCESS 'html-incblocks.txt' %]
2 [% thepath=path(token) %]
3 [% INCLUDE htmlstart title=xmlnorm(nodeParam(token,'comment')) printpath=1 %]
8 IF matches(thepath,'Interface_Counters/$');
9 freesideComponent('/elements/init_overlib.html');
11 router = nodeName(parent(token));
12 serviceids = get_serviceids(nms,router);
14 IF matches(thepath,'Interface_Counters/.*?/$');
16 router = nodeName(parent(parent(token)));
17 serviceids = get_serviceids(nms,router);
19 # this displays the link on the port detail page
20 popup_link('nms-add_iface.html',router,uri_escape(iface_underscore(nodeName(token))),nms,serviceids);
22 IF matches(thepath,'Routers/$');
23 freesideComponent('/elements/init_overlib.html');
24 popup_link('nms-add_router.html');
28 <P>Directories you can jump to:</P>
30 [% hasLeaves = 0; hasSubtrees = 0;
33 FOREACH child = sortTokens(children(token));
35 IF nodeParam(child,'hidden') == 'yes';
38 comment = nodeParam(child,'comment',1);
39 IF not hidden or variables.SHOWHIDDEN;
40 childCounter = childCounter + 1;
41 evenRow = childCounter % 2 == 0;
43 hasLeaves = hasLeaves + 1;
47 urlTitle=' TITLE="Symbolic link to ' _ path(isAlias(child)) _'"';
48 IF isLeaf(isAlias(child));
49 hasLeaves = hasLeaves + 1;
57 <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
58 <SPAN CLASS="NodeName">
59 [% thisIsAlias ? '<EM CLASS="Alias">':'';
60 hidden ? '<EM CLASS="ShowHidden">':'' %]
61 <A HREF="[%url(child)%]"[%urlTitle%]>[% nodeName(child) %]</A>
62 [% hidden ? '</EM>':'';
63 thisIsAlias ? '</EM>':''; %]
64 [% IF matches(thepath,'Interface_Counters/$') %]
66 [% popup_link('nms-add_iface.html',router,uri_escape(iface_underscore(nodeName(child))),nms,serviceids) %]
71 <SPAN CLASS="NodeDescr">
72 [% hidden ? '<EM CLASS="ShowHidden">':'' %]
73 [% xmlnorm(comment) %]
74 [% hidden ? '</EM>':'' %]
82 <DIV CLASS="BottomShortcuts">
84 INCLUDE shortcut url=url(token, 'expanded-dir-html')
86 title="Show all leaf graphs in one page";
88 IF hasSubtrees and nodeParam(token,'show-recursive',1) == 'yes';
89 INCLUDE shortcut url=url(token, 'recursive-dir-html')
91 title="Show all subtrees and leaves in one page";
94 INCLUDE overviewShortcuts %]
97 [% INCLUDE bottomline %]