[Jifty-commit] r6038 - in wifty/trunk: lib/Wifty
Jifty commits
jifty-commit at lists.jifty.org
Sat Nov 29 22:19:18 EST 2008
Author: ruz
Date: Sat Nov 29 22:19:18 2008
New Revision: 6038
Removed:
wifty/trunk/share/web/templates/_elements/nav
Modified:
wifty/trunk/lib/Wifty/Dispatcher.pm
Log:
* replace _elements/nav with a dispatcher rule
Modified: wifty/trunk/lib/Wifty/Dispatcher.pm
==============================================================================
--- wifty/trunk/lib/Wifty/Dispatcher.pm (original)
+++ wifty/trunk/lib/Wifty/Dispatcher.pm Sat Nov 29 22:19:18 2008
@@ -6,6 +6,13 @@
Jifty->api->deny('ConfirmEmail');
};
+before '*', run {
+ my $top = Jifty->web->navigation;
+ $top->child( Home => url => "/", sort_order => 1 );
+ $top->child( Recent => url => "/recent", label => "Recent Changes", sort_order => 2 );
+ $top->child( Search => url => "/search", label => "Search", sort_order => 3 );
+};
+
# Default page
on '/', run {
redirect( '/view/HomePage');
More information about the Jifty-commit
mailing list