diff options
author | Steffen van Bergerem <svbergerem@omgsrsly.net> | 2016-09-18 18:51:14 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-09-18 23:48:05 +0300 |
commit | 327cabe6fe2dd07649c8760ca132ea037972523a (patch) | |
tree | 79468016a8a88c1fc3c6e9d449ef0f4a419219aa /app/views | |
parent | c0b9d125fd6fff469964b51658fa44e7d6cbe825 (diff) |
Add number of unreviewed reports to admin dashboard and admin sidebar
closes #7109
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/admins/_admin_bar.haml | 6 | ||||
-rw-r--r-- | app/views/admins/dashboard.html.haml | 5 |
2 files changed, 9 insertions, 2 deletions
diff --git a/app/views/admins/_admin_bar.haml b/app/views/admins/_admin_bar.haml index c2187bf4e..43ab0a8a4 100644 --- a/app/views/admins/_admin_bar.haml +++ b/app/views/admins/_admin_bar.haml @@ -13,7 +13,11 @@ %li{role: "presentation", class: current_page?(pod_stats_path) && "active"} = link_to t(".pod_stats"), pod_stats_path %li{role: "presentation", class: current_page?(report_index_path) && "active"} - = link_to t(".report"), report_index_path + %a{href: report_index_path} + - if unreviewed_reports_count > 0 + .pull-right.badge + = unreviewed_reports_count + = t(".report") %li{role: "presentation", class: current_page?(admin_pods_path) && "active"} = link_to t(".pod_network"), admin_pods_path %li{role: "presentation", class: current_page?(sidekiq_path) && "active"} diff --git a/app/views/admins/dashboard.html.haml b/app/views/admins/dashboard.html.haml index bf7fd1089..326758301 100644 --- a/app/views/admins/dashboard.html.haml +++ b/app/views/admins/dashboard.html.haml @@ -6,5 +6,8 @@ #pod-status %h2 = t(".pod_status") - .alert.alert-info{role: "alert"} + .alert.alert-info.pod-version{role: "alert"} = t(".fetching_diaspora_version") + - if unreviewed_reports_count > 0 + .alert.alert-warning.reports-warning{role: "alert"} + = t("report.unreviewed_reports", count: unreviewed_reports_count) |