diff --git a/app/helpers/filters_helper.rb b/app/helpers/filters_helper.rb index f06efe62e..5d512218d 100644 --- a/app/helpers/filters_helper.rb +++ b/app/helpers/filters_helper.rb @@ -22,12 +22,16 @@ module FiltersHelper end def filter_selected_collections_sentence(filter) - filter.collections.collect { "#{it.name}" }.uniq.sort.to_sentence + if filter.collections.any? + filter.collections.collect { "#{it.name}" }.uniq.sort.to_sentence + else + tag.strong "All collections" + end end def filter_selected_collections_label(filter) selected_collections = if filter.collections.any? - filter_selected_collections_sentence(filter) + filter.collections.collect { "#{it.name}" }.uniq.sort.to_sentence else "all collections" end