9 |
|
|
10 |
before '*' => run { |
before '*' => run { |
11 |
my $top = Jifty->web->navigation; |
my $top = Jifty->web->navigation; |
12 |
my $edit = Jifty->config->app('edit'); |
my $edit = Jifty->web->current_user->role('edit'); |
13 |
$top->child( 'New' => url => '/new' ) if ($edit); |
$top->child( 'New' => url => '/new' ) if ($edit); |
14 |
my $l = $top->child( 'List' => url => '/list' ); |
my $l = $top->child( 'List' => url => '/list' ); |
15 |
|
|
31 |
$top->child( 'Signup' => url => '/signup' ); |
$top->child( 'Signup' => url => '/signup' ); |
32 |
} |
} |
33 |
|
|
34 |
|
if ( Jifty->web->current_user->role( 'admin' ) ) { |
35 |
|
$top->child( 'Docs' => url => '/__jifty/online_docs/' ); |
36 |
|
$top->child( 'Administration' => url => '/__jifty/admin/' ); |
37 |
|
} |
38 |
|
|
39 |
}; |
}; |
40 |
|
|
41 |
|
|