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
This commit is contained in:
Eugen Rochko 2019-08-08 23:03:28 +02:00 committed by GitHub
parent 41aac1ba3a
commit 898dacf83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View file

@ -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