diff options
author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-21 23:22:03 +0100 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2008-02-21 23:22:03 +0100 |
commit | 776cfed8b9216bd1c782f404af8aef6242a13fd5 (patch) | |
tree | 6f7b5ff6a08b5060639a2ee5ff2563d4cd2a633e | |
parent | 45e109fb848d561c017ac82ce3c13838103efbfe (diff) |
Dynamically list trees.
-rw-r--r-- | tmpl/tree_list.tt2 | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/tmpl/tree_list.tt2 b/tmpl/tree_list.tt2 index d0a1252..11a1f6f 100644 --- a/tmpl/tree_list.tt2 +++ b/tmpl/tree_list.tt2 @@ -28,11 +28,15 @@ <div class="headingbottom"></div> </div> - <p> - <ul> - <li><a href="linux">Linux</a> - </ul> - </p> + <div id="content"> + <p> + <ul> + [% FOREACH tree = context.read_config.keys.sort %] + <li><a href="[% tree %]">[% tree | ucfirst %]</a> + [% END %] + </ul> + </p> + </div> </body> </html> [% INCLUDE footer.tt2 %] |