--- lib/Arh/View/UnitPictures.pm 2007/12/10 15:51:52 30 +++ lib/Arh/View/UnitPictures.pm 2007/12/14 14:44:42 36 @@ -138,8 +138,12 @@ div { { class is 'pictures-by-unit' }; - - em { 'pictures for unit ', $unit->name }; + + if ( $unitpictures->count ) { + em { _('Pictures for unit'), ' ', $unit->name }; + } else { + em { _('No pictures for unit'), ' ', $unit->name }; + } set( search_collection => $unitpictures ); render_region( @@ -150,6 +154,7 @@ unit => $unit->id, } ); + } };