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

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

revision 53 by dpavlin, Sun Apr 6 20:49:32 2008 UTC revision 54 by dpavlin, Sun Apr 6 20:56:54 2008 UTC
# Line 152  template 'fragment' => sub { Line 152  template 'fragment' => sub {
152                  if ( $unitpictures->count ) {                  if ( $unitpictures->count ) {
153                          em { _('Pictures for unit'), ' ', $unit->name };                          em { _('Pictures for unit'), ' ', $unit->name };
154    
                         set( search_collection => $unitpictures );  
                         render_region(  
                                 name => 'unit-pictures',  
                                 path => '/unitpictures/list',  
                                 defaults => {  
                                         page => 1,  
                                         unit => $unit->id,  
                                 }  
                         );  
   
155                  } else {                  } else {
156                          em { _('No pictures for unit'), ' ', $unit->name };                          em { _('No pictures for unit'), ' ', $unit->name };
157                  }                  }
158    
159                    set( search_collection => $unitpictures );
160    
161                    render_region(
162                            name => 'unit-pictures',
163                            path => '/unitpictures/list',
164                            defaults => {
165                                    page => 1,
166                                    unit => $unit->id,
167                            }
168                    );
169    
170          }          }
171  };  };
172    

Legend:
Removed from v.53  
changed lines
  Added in v.54

  ViewVC Help
Powered by ViewVC 1.1.26