]> git.decadent.org.uk Git - maypole.git/blob - templates/factory/navbar
Use table instead of moniker.
[maypole.git] / 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
17         # Hack
18         SET active = '" id="current' IF table == classmetadata.table;
19
20         link(table, "list", active, table);
21         SET active = "";
22         '</LI>';
23     END;
24 %]
25 </ul>
26 </div> 
27