/[Grep]/lib/Grep/Dispatcher.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/Grep/Dispatcher.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 39 by dpavlin, Tue Feb 20 10:51:36 2007 UTC revision 110 by dpavlin, Wed Mar 14 20:02:19 2007 UTC
# Line 13  before '*' => run { Line 13  before '*' => run {
13    
14  #       Jifty->log->debug("current_user = ", dump( $user ));  #       Jifty->log->debug("current_user = ", dump( $user ));
15    
16          if ( $user and $user->id ) {          if ( $user && $user->id ) {
17                    $top->child( 'Search' => url => '/search' );
18                  $top->child( 'Add feed' => url => '/add' );                  $top->child( 'Add feed' => url => '/add' );
19                  $top->child( 'Fetch new results' => url => '/fetch' );                  $top->child( 'Fetch new results' => url => '/fetch' );
20                  my $acc = $top->child( $user->email => url => '/user' );                  my $acc = $top->child( 'Logout' => url => '/logout' );
21                  $acc->child( 'Change password' => url => '/chgpasswd' );                  $acc->child( 'Change password' => url => '/chgpasswd' );
                 $acc->child( 'Logout' => url => '/logout' );  
22    
23          } else {          } else {
24                  my $acc = $top->child( 'Login' => url => '/login' );                  my $acc = $top->child( 'Login' => url => '/login' );
# Line 29  before '*' => run { Line 29  before '*' => run {
29    
30  };  };
31    
32    on '/' => run {
33            show '/user' if Jifty->web->current_user->id;
34    };
35    
36  1;  1;

Legend:
Removed from v.39  
changed lines
  Added in v.110

  ViewVC Help
Powered by ViewVC 1.1.26