views: factor out humanized_number helper.

* Render counts in the user profile tooltip the same way as tag counts.
* Render tag counts in the tags index page the same way as tag counts in
  the tags list.
This commit is contained in:
evazion
2021-02-18 19:16:41 -06:00
parent bcca0ca53a
commit 4ef30844f6
5 changed files with 11 additions and 14 deletions

View File

@@ -14,7 +14,7 @@
← <%= link_to tag_alias.antecedent_name, tag_alias, class: "fineprint" %>
<% end %>
<%= tag.span t.post_count, class: "post-count" %>
<%= tag.span humanized_number(t.post_count), class: "post-count", title: t.post_count %>
<% end %>
<% t.column column: "control" do |tag| %>
<% if policy(tag).update? %>