summaryrefslogtreecommitdiff
path: root/torrus/templates/default-recursivedir.html
diff options
context:
space:
mode:
authorivan <ivan>2010-12-27 00:04:44 +0000
committerivan <ivan>2010-12-27 00:04:44 +0000
commit74e058c8a010ef6feb539248a550d0bb169c1e94 (patch)
tree6e8d3efb218dd0f41970b62c7f29758d1ae9a937 /torrus/templates/default-recursivedir.html
parent35359a73152b3d7a9ad5e3d37faf81f6fedb76e8 (diff)
import torrus 1.0.9
Diffstat (limited to 'torrus/templates/default-recursivedir.html')
-rw-r--r--torrus/templates/default-recursivedir.html52
1 files changed, 52 insertions, 0 deletions
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 %]
+
+<H1>[% xmlnorm(nodeParam(token,'comment')) %]</H1>
+
+[% 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; %]
+<DIV CLASS="RecursiveListRow">
+ <SPAN CLASS="NodeName">
+ [% thisIsAlias ? '<EM CLASS="Alias">':'';
+ hidden ? '<EM CLASS="ShowHidden">':'' %]
+ <A HREF="[%url(child)%]"
+ TITLE="[%urlTitle%]">[% nodeName(child) %]</A>
+ [% hidden ? '</EM>':''; thisIsAlias ? '</EM>':''; %]
+ </SPAN>
+ [% INCLUDE recursiveChildren token=child %]
+</DIV>
+ [% END;
+ END;
+ END %]
+
+
+<P>Directories you can jump to:</P>
+<DIV CLASS="Listing">
+[% INCLUDE recursiveChildren token=token %]
+</DIV>
+
+<DIV CLASS="BottomShortcuts">
+[% INCLUDE shortcut url=url(token) text="Default view"
+ title="Restore default subtree view";
+ INCLUDE overviewShortcuts
+%]
+</DIV>
+
+[% INCLUDE bottomline %]
+[% INCLUDE htmlend %]