Display trending hashtags on admin dashboard (#8038)

This commit is contained in:
Eugen Rochko
2018-07-16 19:21:27 +02:00
committed by GitHub
parent 7e2678f7f6
commit 0d13e30ad2
3 changed files with 37 additions and 0 deletions

View File

@ -138,3 +138,12 @@
%span.pull-right.positive-hint= fa_icon 'check fw'
- else
%span.pull-right.negative-hint= fa_icon 'times fw'
.dashboard__widgets__trends
%div
%h4= t 'admin.dashboard.trends'
%ul
- @trending_hashtags.each do |tag|
%li
= link_to "##{tag.name}", web_url("timelines/tag/#{tag.name}")
%span.pull-right= number_with_delimiter(tag.history[0]['accounts'].to_i)