diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-07-16 19:21:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-16 19:21:27 +0200 |
commit | 0d13e30ad2579a9fc55f1b57c80cf9a9a89b1491 (patch) | |
tree | 9635d4f3d0c7af3b28e71476d6f61e5f248e8b32 /app/views/admin | |
parent | 7e2678f7f66fbdb215b89378e2a1b7d9e3901fc0 (diff) |
Display trending hashtags on admin dashboard (#8038)
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/dashboard/index.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index 50004de33..41a0ee5a1 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -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) |