/[A3C]/lib/A3C/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

Annotation of /lib/A3C/Dispatcher.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 125 - (hide annotations)
Thu May 22 20:48:42 2008 UTC (14 years, 8 months ago) by dpavlin
File size: 740 byte(s)
added custom CRUD for search of organization and search while
preserving most of Jifty ajax goodnes by overriding just a few
templates from jifty's Jifty::View::Declare::CRUD
1 dpavlin 50 package A3C::Dispatcher;
2    
3     use strict;
4     use warnings;
5    
6     use Jifty::Dispatcher -base;
7    
8     use Data::Dump qw/dump/;
9    
10     before '*' => run {
11 dpavlin 67 warn "## ", Jifty->web->request->path;
12     Jifty->web->tangent(url => '/ldaplogin')
13     if ( ! Jifty->web->current_user->id && Jifty->web->request->path !~ m{^/(?:ldaplogin|__jifty)} );
14    
15 dpavlin 50 my $top = Jifty->web->navigation;
16     my $user = Jifty->web->current_user->user_object;
17    
18     # Jifty->log->debug("current_user = ", dump( $user ));
19    
20 dpavlin 71 $top->child( _('People') => url => 'people' );
21 dpavlin 125 $top->child( _('Organizations') => url => 'organizations' );
22 dpavlin 71
23     $top->child( _('Sync') => url => 'sync' );
24     $top->child( _('LDAP') => url => 'ldap' );
25    
26 dpavlin 50 # $top->child( 'Prefs' => url => '/prefs' ) if Jifty->web->current_user->id;
27    
28     };
29    
30     1;

  ViewVC Help
Powered by ViewVC 1.1.26