| Jifty documentation | Contained in the Jifty distribution. |
Jifty::Plugin::AdminUI::Dispatcher - dispatcher of the AdminUI plugin
Adds dispatching rules required for the AdminUI plugin.
Adds 'Administration' item to the top navigation if AdminMode is activated in the config.
| Jifty documentation | Contained in the Jifty distribution. |
use warnings; use strict; package Jifty::Plugin::AdminUI::Dispatcher;
use Jifty::Dispatcher -base;
on '**' => run { my $top = Jifty->web->navigation; # for now leave check here, but we want AdminUI to be # real plugin someday if (Jifty->admin_mode) { $top->child( Administration => url => "/__jifty/admin/", label => _('Administration'), sort_order => 998, ); } return (); }; 1;