about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-16 19:21:27 +0200
committerGitHub <noreply@github.com>2018-07-16 19:21:27 +0200
commit0d13e30ad2579a9fc55f1b57c80cf9a9a89b1491 (patch)
tree9635d4f3d0c7af3b28e71476d6f61e5f248e8b32 /app/views
parent7e2678f7f66fbdb215b89378e2a1b7d9e3901fc0 (diff)
Display trending hashtags on admin dashboard (#8038)
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/dashboard/index.html.haml9
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)