diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index d4542a2a..1964b2a9 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -5,7 +5,7 @@ class TagsController < InheritedResources::Base .pluck(:tags).map(&:split).flatten .group_by { |i| i } .map { |k, v| [k, v.size] } - .reject { |_k, v| v < 2 } + .reject { |_k, v| v <= 3 } .sort respond_to do |format| diff --git a/config/locales/views/en.yml b/config/locales/views/en.yml index e840e66e..aa92a24d 100644 --- a/config/locales/views/en.yml +++ b/config/locales/views/en.yml @@ -147,7 +147,7 @@ it more readable or agreable. tags: index: title: Tags - limited: Only tags on more than one event are displayed in this list. + limited: Only tags on more than three events are displayed in this list show: title: Events future: diff --git a/config/locales/views/fr.yml b/config/locales/views/fr.yml index dfc83300..ba60955b 100644 --- a/config/locales/views/fr.yml +++ b/config/locales/views/fr.yml @@ -146,8 +146,8 @@ fr: tags: index: title: Tags - limited: Seuls les tags portants sur plus d'un évènement sont affichés - dans cette liste. + limited: Seuls les tags portants sur plus de trois évènements sont + affichés dans cette liste show: title: Les événements future: