From 74e058c8a010ef6feb539248a550d0bb169c1e94 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 27 Dec 2010 00:04:44 +0000 Subject: import torrus 1.0.9 --- torrus/templates/default-recursivedir.html | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 torrus/templates/default-recursivedir.html (limited to 'torrus/templates/default-recursivedir.html') diff --git a/torrus/templates/default-recursivedir.html b/torrus/templates/default-recursivedir.html new file mode 100644 index 000000000..eed649322 --- /dev/null +++ b/torrus/templates/default-recursivedir.html @@ -0,0 +1,52 @@ +[% PROCESS 'html-incblocks.txt' %] +[% thepath=path(token) %] +[% INCLUDE htmlstart title=thepath printpath=1 %] + +

[% xmlnorm(nodeParam(token,'comment')) %]

+ +[% INCLUDE legend %] + +[%# ########### Recursively print the children ################ %] + +[% BLOCK recursiveChildren; + FOREACH child = sortTokens(children(token)); + hidden = 0; + IF nodeParam(child,'hidden') == 'yes'; + hidden = 1; + END; + IF isAlias(child); + thisIsAlias = 1; + urlTitle = 'Symbolic link to ' _ path(isAlias(child)); + ELSE; + urlTitle = nodeParam(child,'comment',1); + END; + IF not hidden or variables.SHOWHIDDEN; %] +
+ + [% thisIsAlias ? '':''; + hidden ? '':'' %] + [% nodeName(child) %] + [% hidden ? '':''; thisIsAlias ? '':''; %] + + [% INCLUDE recursiveChildren token=child %] +
+ [% END; + END; + END %] + + +

Directories you can jump to:

+
+[% INCLUDE recursiveChildren token=token %] +
+ +
+[% INCLUDE shortcut url=url(token) text="Default view" + title="Restore default subtree view"; + INCLUDE overviewShortcuts +%] +
+ +[% INCLUDE bottomline %] +[% INCLUDE htmlend %] -- cgit v1.2.1