From 86312aa9b9ae904a310f84ae9ba225167aaa5f28 Mon Sep 17 00:00:00 2001 From: Toks Date: Sat, 27 Apr 2013 07:48:08 -0400 Subject: [PATCH] tweaked fix for #1446 --- app/presenters/tag_set_presenter.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/presenters/tag_set_presenter.rb b/app/presenters/tag_set_presenter.rb index 2675e8488..c20bd5c05 100644 --- a/app/presenters/tag_set_presenter.rb +++ b/app/presenters/tag_set_presenter.rb @@ -126,7 +126,10 @@ private end is_underused_tag = counts[tag].to_i <= 1 && categories[tag] == Tag.categories.general - html << %{#{post_count}} + klass = "post-count#{is_underused_tag ? " low-post-count" : ""}" + title = "This tag has a low post count. Check if it is a typo or consider tagging more posts with it." + + html << %{#{post_count}} end html << ""