]> git.decadent.org.uk Git - maypole.git/blob - ex/fancy_example/templates/factory/navbar
tested and it seems to work
[maypole.git] / ex / fancy_example / templates / factory / navbar
1 [%#
2
3 =head1 navbar
4
5 This is a navigation bar to go across the page. (Or down the side, or
6 whatetver you want to do with it.) It displays all the tables which are
7 accessible, with a link to the list page for each one.
8
9 #%]
10 [% PROCESS macros %]
11 <div id="navcontainer">
12 <ul id="navlist">
13 [%
14     FOR table = config.display_tables;
15         '<li '; 'id="active"' IF table == classmetadata.table; '>';
16         # Hack
17         link(table, "list", "", table);
18         '</li>';
19     END;
20 %]
21 </ul>
22 </div>