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