/[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 30 by dpavlin, Mon Dec 10 15:51:52 2007 UTC revision 33 by dpavlin, Fri Dec 14 14:29:32 2007 UTC
# Line 138  template 'fragment' => sub { Line 138  template 'fragment' => sub {
138    
139          div {          div {
140                  { class is 'pictures-by-unit' };                  { class is 'pictures-by-unit' };
           
                 em { 'pictures for unit ', $unit->name };  
141    
142                  set( search_collection => $unitpictures );                  if ( $unitpictures->count ) {
143                  render_region(  
144                          name => 'unit-pictures',                          em { _('Pictures for unit'), ' ', $unit->name };
145                          path => '/unitpictures/list',  
146                          defaults => {                          set( search_collection => $unitpictures );
147                                  page => 1,                          render_region(
148                                  unit => $unit->id,                                  name => 'unit-pictures',
149                          }                                  path => '/unitpictures/list',
150                  );                                  defaults => {
151                                            page => 1,
152                                            unit => $unit->id,
153                                    }
154                            );
155    
156                    } else {
157    
158                            em { _('No pictures for unit'), ' ', $unit->name };
159    
160                    }
161          }          }
162  };  };
163    

Legend:
Removed from v.30  
changed lines
  Added in v.33

  ViewVC Help
Powered by ViewVC 1.1.26