tweaked fix for #1446
This commit is contained in:
@@ -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>"
|
||||
|
||||
Reference in New Issue
Block a user