Simon Cozens > Maypole > templates/factory/navbar

Download:
Maypole-1.7.tar.gz

Annotate this POD

CPAN RT

New  7
Open  5
View/Report Bugs
Source   Latest Release: Maypole-2.10

navbar ^

This is a navigation bar to go across the page. (Or down the side, or whatetver you want to do with it.) It displays all the tables which are accessible, with a link to the list page for each one.

#%] [% PROCESS macros %] <div id="navcontainer"> <ul id="navlist"> [% FOR table = config.display_tables; '<LI '; 'id="active"' IF table == classmetadata.table; '>';

        # Hack
        SET active = '" id="current' IF table == classmetadata.table;

        link(table, "list", active, table);
        SET active = "";
        '</LI>';
    END;
%]
</ul>
</div> 
syntax highlighting: