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 |
|
|