Commit bb9560a3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Show total user count on dashboard page

parent bb7be246
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
%span.light.pull-right %span.light.pull-right
= Milestone.count = Milestone.count
%p %p
Users Active Users
%span.light.pull-right %span.light.pull-right
= User.count = User.active.count
.col-md-4 .col-md-4
%h4 %h4
Features Features
...@@ -91,10 +91,10 @@ ...@@ -91,10 +91,10 @@
= link_to('New Project', new_project_path, class: "btn btn-new") = link_to('New Project', new_project_path, class: "btn btn-new")
.col-sm-4 .col-sm-4
.light-well .light-well
%h4 Active Users %h4 Users
.data .data
= link_to admin_users_path do = link_to admin_users_path do
%h1= User.active.count %h1= User.count
%hr %hr
= link_to 'New User', new_admin_user_path, class: "btn btn-new" = link_to 'New User', new_admin_user_path, class: "btn btn-new"
.col-sm-4 .col-sm-4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment