diff --git a/app/presenters/tag_set_presenter.rb b/app/presenters/tag_set_presenter.rb index 7e267dead..5ffdc4f89 100644 --- a/app/presenters/tag_set_presenter.rb +++ b/app/presenters/tag_set_presenter.rb @@ -115,8 +115,10 @@ private html << %{#{h(humanized_tag)} } unless options[:name_only] - if counts[tag].to_i >= 1_000 + if counts[tag].to_i >= 10_000 post_count = "#{counts[tag].to_i / 1_000}k" + elsif counts[tag].to_i >= 1_000 + post_count = "%.1fk" % (counts[tag].to_f / 1_000) else post_count = counts[tag].to_s end