fix torrus interface slowness resulting from initializing FS for every component...
[freeside.git] / torrus / templates / default-dir.html
1 [% PROCESS 'html-incblocks.txt' %]
2 [% thepath=path(token) %]
3 [% INCLUDE htmlstart title=xmlnorm(nodeParam(token,'comment')) printpath=1 %]
4
5 [% INCLUDE legend %]
6
7 [% IF matches(thepath,'Interface_Counters/$') %]
8    [% freesideComponent('/elements/init_overlib.html') %]
9 [% END %]
10
11 <P>Directories you can jump to:</P>
12 <DIV CLASS="Listing">
13 [%   hasLeaves = 0; hasSubtrees = 0;
14      childCounter = 0;
15      evenRow = 0;
16      FOREACH child = sortTokens(children(token));
17        hidden = 0;
18        IF nodeParam(child,'hidden') == 'yes';
19          hidden = 1;
20        END;
21        comment = nodeParam(child,'comment',1);
22        IF not hidden or variables.SHOWHIDDEN;
23          childCounter = childCounter + 1;
24          evenRow = childCounter % 2 == 0;
25          IF isLeaf(child);
26            hasLeaves = hasLeaves + 1;
27          ELSE;
28            IF isAlias(child);
29              thisIsAlias = 1;
30              urlTitle=' TITLE="Symbolic link to ' _ path(isAlias(child)) _'"';
31              IF isLeaf(isAlias(child));
32                hasLeaves = hasLeaves + 1;
33              END;
34            ELSE;
35              hasSubtrees = 1;
36              urlTitle = '';
37            END;
38          END;
39 %]
40   <DIV CLASS="[% evenRow ? 'ListRowEven' : 'ListRow' %]">
41     <SPAN CLASS="NodeName">
42       [% thisIsAlias ? '<EM CLASS="Alias">':'';
43          hidden ? '<EM CLASS="ShowHidden">':'' %]
44       <A HREF="[%url(child)%]"[%urlTitle%]>[% nodeName(child) %]</A>
45       [% hidden ? '</EM>':'';
46          thisIsAlias ? '</EM>':''; %]
47       [% IF matches(thepath,'Interface_Counters/$') %]
48         [% popup_link('nms-add_iface.html',nodeName(parent(token)),uri_escape(nodeName(child))) %]
49       [% END %]
50     </SPAN>
51        [% IF comment %]
52     <SPAN CLASS="NodeDescr">
53       [% hidden ? '<EM CLASS="ShowHidden">':'' %]
54       [% xmlnorm(comment) %]
55       [% hidden ? '</EM>':'' %]
56     </SPAN>
57        [% END %]
58   </DIV>
59     [% END %]
60   [% END %]
61 </DIV>
62
63 <DIV CLASS="BottomShortcuts">
64 [% IF hasLeaves > 1;
65     INCLUDE shortcut url=url(token, 'expanded-dir-html')
66                      text="Expand leaves"
67                      title="Show all leaf graphs in one page";
68    END;
69    IF hasSubtrees and nodeParam(token,'show-recursive',1) == 'yes';
70     INCLUDE shortcut url=url(token, 'recursive-dir-html')
71                      text="Recursive view"
72                      title="Show all subtrees and leaves in one page";
73    
74    END;
75    INCLUDE overviewShortcuts %]
76 </DIV>
77
78 [% INCLUDE bottomline %]
79 [% INCLUDE htmlend %]