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

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

revision 122 by dpavlin, Tue May 20 09:47:59 2008 UTC revision 149 by dpavlin, Tue Jun 3 15:32:14 2008 UTC
# Line 116  template 'people' => page { Line 116  template 'people' => page {
116    
117          if ( my $search = $action->result->content('search') ) {          if ( my $search = $action->result->content('search') ) {
118                  div { sprintf(_('Found %d results'), $search->count ) }                  div { sprintf(_('Found %d results'), $search->count ) }
119                  ol {                  table {
120                          while (my $user = $search->next) {                          while (my $user = $search->next) {
121                                  li {                                  row {
122                                          span { $user->cn }                                          cell { $user->cn }
123                                          tt { $user->uid }                                          cell { tt { $user->uid } }
124                                            cell { tt { $user->hrEduPersonUniqueID } }
125                                            cell { $user->hrEduPersonHomeOrg }
126                                  }                                  }
127                          }                          }
128                  }                  }
# Line 154  template 'sync' => page { Line 156  template 'sync' => page {
156          }          }
157    
158  };  };
159    
160    # mount other views
161    use A3C::View::Organization;
162    
163    # we can't really use following form because Jifty would upper case first
164    # letter of model and try to find A3C::Model::HrEduOrg which doesn't exit!
165    #Jifty::View::Declare::CRUD->mount_view('hrEduOrg', 'A3C::View::Organization', '/organizations');
166    alias A3C::View::Organization under '/organizations', {
167            object_type => 'hrEduOrg',
168    };
169    
170    use A3C::View::Strix;
171    alias A3C::View::Strix under '/strix';
172    
173    1;

Legend:
Removed from v.122  
changed lines
  Added in v.149

  ViewVC Help
Powered by ViewVC 1.1.26