fix ticketing system error on bootstrap of new install
[freeside.git] / torrus / templates / default-recursivedir.html
1 [% PROCESS 'html-incblocks.txt' %]
2 [% thepath=path(token) %]
3 [% INCLUDE htmlstart title=thepath printpath=1 %]
4
5 <H1>[% xmlnorm(nodeParam(token,'comment')) %]</H1>
6
7 [% INCLUDE legend %]
8
9 [%#  ###########    Recursively print the children   ################ %]
10
11 [% BLOCK recursiveChildren;
12      FOREACH child = sortTokens(children(token));
13        hidden = 0;
14        IF nodeParam(child,'hidden') == 'yes';
15          hidden = 1;
16        END;
17        IF isAlias(child);
18          thisIsAlias = 1;
19          urlTitle = 'Symbolic link to ' _ path(isAlias(child));
20        ELSE;
21          urlTitle = nodeParam(child,'comment',1);
22        END;
23        IF not hidden or variables.SHOWHIDDEN; %]
24 <DIV CLASS="RecursiveListRow">
25   <SPAN CLASS="NodeName">
26     [% thisIsAlias ? '<EM CLASS="Alias">':'';
27        hidden ? '<EM CLASS="ShowHidden">':'' %]
28     <A HREF="[%url(child)%]"
29        TITLE="[%urlTitle%]">[% nodeName(child) %]</A>
30     [% hidden ? '</EM>':'';  thisIsAlias ? '</EM>':''; %]
31   </SPAN>
32   [% INCLUDE recursiveChildren token=child %]
33 </DIV>
34     [% END;
35      END;
36   END %]
37
38
39 <P>Directories you can jump to:</P>
40 <DIV CLASS="Listing">
41 [% INCLUDE recursiveChildren token=token %]
42 </DIV>
43
44 <DIV CLASS="BottomShortcuts">
45 [% INCLUDE shortcut url=url(token) text="Default view"
46                      title="Restore default subtree view";
47    INCLUDE overviewShortcuts
48 %]
49 </DIV>
50
51 [% INCLUDE bottomline %]
52 [% INCLUDE htmlend %]