diff --git a/app/controllers/usage_controller.rb b/app/controllers/usage_controller.rb index 2615a13..bf89412 100644 --- a/app/controllers/usage_controller.rb +++ b/app/controllers/usage_controller.rb @@ -8,7 +8,13 @@ (current_user.can_org_admin? || current_user.can_super_admin?) raise Pundit::NotAuthorizedError end - render("index", locals: { orgs: Org.all }) + render("index", + locals: { + orgs: Org.all, + total_org_users: current_user.org.users.size, + total_org_plans: current_user.org.plans.size + } + ) end end diff --git a/app/views/usage/index.html.erb b/app/views/usage/index.html.erb index 14e3460..de3db23 100644 --- a/app/views/usage/index.html.erb +++ b/app/views/usage/index.html.erb @@ -1,8 +1,24 @@ <% title _('Usage statistics') %>
<%= _('Use the filters to generate organisational usage statistics for a custom date range. The graphs display new users and plans for your organisation over the past year. You can download a CSV report for each graph.') %>