tweaked fix for #1446

This commit is contained in:
Toks
2013-04-27 07:48:08 -04:00
parent 4e1df5d987
commit 86312aa9b9

View File

@@ -126,7 +126,10 @@ private
end
is_underused_tag = counts[tag].to_i <= 1 && categories[tag] == Tag.categories.general
html << %{<span class="post-count#{is_underused_tag ? " low-post-count" : ""}"#{is_underused_tag ? " title='This tag has low post count. Check if it is a typo or consider tagging more post with it.'" : ""}>#{post_count}</span>}
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 << %{<span class="#{klass}"#{is_underused_tag ? " title='#{title}'" : ""}>#{post_count}</span>}
end
html << "</li>"