From bb7be246f6928368d0bdadfb7a3258d610d48252 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 8 Mar 2015 17:30:01 -0700 Subject: Show active users(non-blocked) on admin dashboard --- app/views/admin/dashboard/index.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/admin/dashboard/index.html.haml b/app/views/admin/dashboard/index.html.haml index 931b0c5c107..34e4e336261 100644 --- a/app/views/admin/dashboard/index.html.haml +++ b/app/views/admin/dashboard/index.html.haml @@ -32,9 +32,9 @@ %span.light.pull-right = Milestone.count %p - Users who signed in during last 30 days + Users %span.light.pull-right - = User.where("current_sign_in_at > ?", 30.days.ago).count + = User.count .col-md-4 %h4 Features @@ -91,10 +91,10 @@ = link_to('New Project', new_project_path, class: "btn btn-new") .col-sm-4 .light-well - %h4 Users + %h4 Active Users .data = link_to admin_users_path do - %h1= User.count + %h1= User.active.count %hr = link_to 'New User', new_admin_user_path, class: "btn btn-new" .col-sm-4 -- cgit v1.2.1