diff --git a/app/controllers/admin/dashboards_controller.rb b/app/controllers/admin/dashboards_controller.rb index 6cd87cf..0644486 100644 --- a/app/controllers/admin/dashboards_controller.rb +++ b/app/controllers/admin/dashboards_controller.rb @@ -1,6 +1,8 @@ class Admin::DashboardsController < ApplicationController before_action :authorize! def show + @user = User.all + @jobs = Job.currently_working_on end def authorize! diff --git a/app/views/admin/dashboards/show.html.erb b/app/views/admin/dashboards/show.html.erb index daa4224..b3d055c 100644 --- a/app/views/admin/dashboards/show.html.erb +++ b/app/views/admin/dashboards/show.html.erb @@ -7,4 +7,33 @@
<%= @user.count %>
+<%= @user.operator.count %>
+<%= @user.admin.count %>
+<%= @jobs.count %>
+