Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-09 03:30:01 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-09 03:30:01 +0300
commitbb7be246f6928368d0bdadfb7a3258d610d48252 (patch)
treefc32614817b58d355e71dc6cf801817711e89fee /app/views/admin
parent8b551ee31858db9c5da1ff5245359151d5b71211 (diff)
Show active users(non-blocked) on admin dashboard
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/dashboard/index.html.haml8
1 files changed, 4 insertions, 4 deletions
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