2012-04-20 18:41:49 +02:00
|
|
|
.admin_dash.row
|
|
|
|
.span4
|
|
|
|
.ui-box
|
|
|
|
%h5
|
|
|
|
Resque Workers
|
|
|
|
.data.padded
|
2012-06-29 13:44:55 +02:00
|
|
|
= link_to admin_resque_path do
|
2012-08-11 00:07:50 +02:00
|
|
|
%h1{class: @workers.present? ? "cgreen" : "cred"}
|
2012-04-20 18:41:49 +02:00
|
|
|
= @workers.count
|
|
|
|
%hr
|
|
|
|
%p
|
2012-08-11 00:07:50 +02:00
|
|
|
%strong{class: @pending_jobs > 0 ? "cred" : "cgreen"}
|
2012-04-20 18:41:49 +02:00
|
|
|
#{@pending_jobs} post receive jobs waiting
|
|
|
|
|
|
|
|
.span4
|
|
|
|
.ui-box
|
|
|
|
%h5 Projects
|
|
|
|
.data.padded
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to admin_projects_path do
|
2012-04-20 18:41:49 +02:00
|
|
|
%h1= Project.count
|
|
|
|
%hr
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to 'New Project', new_admin_project_path, class: "btn small"
|
2012-04-20 18:41:49 +02:00
|
|
|
.span4
|
|
|
|
.ui-box
|
|
|
|
%h5 Users
|
|
|
|
.data.padded
|
2012-06-04 00:37:27 +02:00
|
|
|
= link_to admin_users_path do
|
2012-04-20 18:41:49 +02:00
|
|
|
%h1= User.count
|
|
|
|
%hr
|
2012-08-11 00:07:50 +02:00
|
|
|
= link_to 'New User', new_admin_user_path, class: "btn small"
|
2012-04-20 18:41:49 +02:00
|
|
|
|
|
|
|
|
|
|
|
.row
|
|
|
|
.span6
|
|
|
|
%h3 Latest projects
|
|
|
|
%hr
|
|
|
|
- @projects.each do |project|
|
2012-08-25 19:31:19 +02:00
|
|
|
%p
|
2012-04-20 18:41:49 +02:00
|
|
|
= link_to project.name, [:admin, project]
|
|
|
|
.span6
|
|
|
|
%h3 Latest users
|
|
|
|
%hr
|
|
|
|
- @users.each do |user|
|
2012-08-25 19:31:19 +02:00
|
|
|
%p
|
|
|
|
= link_to [:admin, user] do
|
|
|
|
= user.name
|
|
|
|
%small= user.email
|