tags: allow hovering over tag counts in sidebar to see exact counts.

This commit is contained in:
evazion
2019-09-17 02:05:03 -05:00
parent 3b831b8b50
commit c2a76840c9

View File

@@ -149,9 +149,8 @@ class TagSetPresenter < Presenter
is_underused_tag = count <= 1 && category == Tag.categories.general
klass = "post-count#{is_underused_tag ? " low-post-count" : ""}"
title = "New general tag detected. Check the spelling or populate it now."
html << %{<span class="#{klass}"#{is_underused_tag ? " title='#{title}'" : ""}>#{post_count}</span>}
html << %{<span class="#{klass}" title="#{count}">#{post_count}</span>}
end
html << "</li>"