about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-08-08 23:03:28 +0200
committerGitHub <noreply@github.com>2019-08-08 23:03:28 +0200
commit898dacf83eaaec8ba02d4e44dd9901521d79a898 (patch)
treef13a666c37d53ad289ae5e4303e2f7ac2053cac9 /app/views
parent41aac1ba3a247b2178699e529239a7f3b8eb6edc (diff)
Fix weekly usage not being displayed correctly in hashtag admin UI (#11524)
Fix percentages in usage breakdown having too many digits

Change trending hashtags to only ask for review if a hashtag enters
the top 3 position in the set, since it's the only items shown in
the default web UI
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/tags/show.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/tags/show.html.haml b/app/views/admin/tags/show.html.haml
index 6a1e03065..c3779d48c 100644
--- a/app/views/admin/tags/show.html.haml
+++ b/app/views/admin/tags/show.html.haml
@@ -41,5 +41,5 @@
       - @usage_by_domain.each do |(domain, count)|
         %tr
           %th= domain || site_hostname
-          %td= "#{number_with_delimiter((count.to_f / @tag.history[0][:uses].to_f) * 100)}%"
+          %td= number_to_percentage((count / @tag.history[0][:uses].to_f) * 100)
           %td= number_with_delimiter count