From 0e18d2119e4f104abcfa775b41359cdca72cd757 Mon Sep 17 00:00:00 2001 From: echarp Date: Tue, 28 Oct 2014 00:39:23 +0100 Subject: [PATCH] =?UTF-8?q?Affiche=20moins=20d'=C3=A9v=C3=A9nements=20dans?= =?UTF-8?q?=20le=20nuage=20de=20tags?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/tags_controller.rb | 2 +- config/locales/views/en.yml | 2 +- config/locales/views/fr.yml | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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: