/[Arh]/lib/Arh/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/Arh/Dispatcher.pm

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

revision 47 by dpavlin, Sun Apr 6 16:06:41 2008 UTC revision 67 by dpavlin, Tue Apr 8 23:22:22 2008 UTC
# Line 15  before '*' => run { Line 15  before '*' => run {
15          #warn "##### ",dump( $user );          #warn "##### ",dump( $user );
16    
17          $top->child( _('Units') => url => '/units' );          $top->child( _('Units') => url => '/units' );
18            $top->child( _('Bulk create') => url => '/units/bulk' );
19    
20          if ( $user->id ) {          if ( $user->id ) {
21                  $top->child( _('Pictures') => url => '/pictures' );                  # only for logged users
22          }          }
23    
24  };  };
25    
26    on qr{^/pictures/show/(.+)$} => run {
27            warn "## showing raw_pic $1\n";
28            set filename => $1;
29            show 'raw_pic';
30    };
31    
32    under qr{^/units/bulk} => run {
33            set per_page => 1;
34    };
35    
36  1;  1;

Legend:
Removed from v.47  
changed lines
  Added in v.67

  ViewVC Help
Powered by ViewVC 1.1.26