Improve admin views for project and groups

* layout: add 'Groups' item to main_menu
* admin/dashboard: add a ui-box for groups
* projects and groups: remove nav tabs
This commit is contained in:
Cyril 2012-11-28 17:08:25 +01:00
parent 3d242a3154
commit e0a9ffcdaa
10 changed files with 38 additions and 33 deletions

View file

@ -1,5 +1,29 @@
.admin_dash.row
.span4
.span3
.ui-box
%h5 Projects
.data.padded
= link_to admin_projects_path do
%h1= Project.count
%hr
= link_to 'New Project', new_project_path, class: "btn small"
.span3
.ui-box
%h5 Groups
.data.padded
= link_to admin_groups_path do
%h1= Group.count
%hr
= link_to 'New Group', new_admin_group_path, class: "btn small"
.span3
.ui-box
%h5 Users
.data.padded
= link_to admin_users_path do
%h1= User.count
%hr
= link_to 'New User', new_admin_user_path, class: "btn small"
.span3
.ui-box
%h5
Resque Workers
@ -19,27 +43,6 @@
%p
%strong Resque status unknown
.span4
.ui-box
%h5 Projects
.data.padded
= link_to admin_projects_path do
%h1= Project.count
%hr
= link_to 'New Project', new_project_path, class: "btn small"
 
= link_to 'New Group', new_admin_group_path, class: "btn small"
.span4
.ui-box
%h5 Users
.data.padded
= link_to admin_users_path do
%h1= User.count
%hr
= link_to 'New User', new_admin_user_path, class: "btn small"
.row
.span6
%h3 Latest projects

View file

@ -1,4 +1,3 @@
= render 'admin/shared/projects_head'
%h3.page_title
Groups
%small

View file

@ -1,4 +1,3 @@
= render 'admin/shared/projects_head'
%h3.page_title
Group: #{@group.name}
= link_to edit_admin_group_path(@group), class: "btn right" do

View file

@ -1,4 +1,3 @@
= render 'admin/shared/projects_head'
%h3.page_title
Projects
= link_to 'New Project', new_project_path, class: "btn small right"

View file

@ -1,4 +1,3 @@
= render 'admin/shared/projects_head'
%h3.page_title
Project: #{@project.name_with_namespace}
= link_to edit_admin_project_path(@project), class: "btn right" do

View file

@ -1,5 +0,0 @@
%ul.nav.nav-tabs
= nav_link(controller: :projects) do
= link_to 'Projects', admin_projects_path, class: "tab"
= nav_link(controller: :groups) do
= link_to 'Groups', admin_groups_path, class: "tab"