2012-04-20 12:41:49 -04:00
|
|
|
.admin_dash.row
|
2013-01-09 00:14:05 -05:00
|
|
|
.span4
|
2012-11-28 11:08:25 -05:00
|
|
|
.ui-box
|
2013-01-04 17:35:38 -05:00
|
|
|
%h5.title Projects
|
2012-11-28 11:08:25 -05:00
|
|
|
.data.padded
|
|
|
|
= link_to admin_projects_path do
|
|
|
|
%h1= Project.count
|
|
|
|
%hr
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to 'New Project', new_project_path, class: "btn btn-small"
|
2013-01-09 00:14:05 -05:00
|
|
|
.span4
|
2012-11-28 11:08:25 -05:00
|
|
|
.ui-box
|
2013-01-04 17:35:38 -05:00
|
|
|
%h5.title Groups
|
2012-11-28 11:08:25 -05:00
|
|
|
.data.padded
|
|
|
|
= link_to admin_groups_path do
|
|
|
|
%h1= Group.count
|
|
|
|
%hr
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to 'New Group', new_admin_group_path, class: "btn btn-small"
|
2013-01-09 00:14:05 -05:00
|
|
|
.span4
|
2012-11-28 11:08:25 -05:00
|
|
|
.ui-box
|
2013-01-04 17:35:38 -05:00
|
|
|
%h5.title Users
|
2012-11-28 11:08:25 -05:00
|
|
|
.data.padded
|
|
|
|
= link_to admin_users_path do
|
|
|
|
%h1= User.count
|
|
|
|
%hr
|
2013-01-29 15:29:21 -05:00
|
|
|
= link_to 'New User', new_admin_user_path, class: "btn btn-small"
|
2012-11-21 05:45:15 -05:00
|
|
|
|
2012-04-20 12:41:49 -04:00
|
|
|
.row
|
2013-01-10 01:43:25 -05:00
|
|
|
.span4
|
|
|
|
%h4 Latest projects
|
2012-04-20 12:41:49 -04:00
|
|
|
%hr
|
|
|
|
- @projects.each do |project|
|
2012-08-25 13:31:19 -04:00
|
|
|
%p
|
2012-11-27 01:31:15 -05:00
|
|
|
= link_to project.name_with_namespace, [:admin, project]
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= time_ago_in_words project.created_at
|
|
|
|
ago
|
|
|
|
|
|
|
|
.span4
|
|
|
|
%h4 Latest users
|
2012-04-20 12:41:49 -04:00
|
|
|
%hr
|
|
|
|
- @users.each do |user|
|
2012-08-25 13:31:19 -04:00
|
|
|
%p
|
2012-11-21 05:45:15 -05:00
|
|
|
= link_to [:admin, user] do
|
2012-08-25 13:31:19 -04:00
|
|
|
= user.name
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= time_ago_in_words user.created_at
|
|
|
|
ago
|
|
|
|
|
|
|
|
.span4
|
|
|
|
%h4 Stats
|
|
|
|
%hr
|
|
|
|
%p
|
|
|
|
Issues
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= Issue.count
|
|
|
|
%p
|
|
|
|
Merge Requests
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= MergeRequest.count
|
|
|
|
%p
|
|
|
|
Notes
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= Note.count
|
|
|
|
%p
|
|
|
|
Snippets
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= Snippet.count
|
|
|
|
%p
|
|
|
|
SSH Keys
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= Key.count
|
|
|
|
%p
|
|
|
|
Milestones
|
2013-01-30 09:40:43 -05:00
|
|
|
%span.light.pull-right
|
2013-01-10 01:43:25 -05:00
|
|
|
= Milestone.count
|