Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
cf8b3692
Commit
cf8b3692
authored
Nov 29, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2105 from jouve/improve_admin_views
Improve admin section
parents
a0aa0212
e0a9ffcd
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
38 additions
and
33 deletions
+38
-33
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+25
-22
app/views/admin/groups/index.html.haml
app/views/admin/groups/index.html.haml
+0
-1
app/views/admin/groups/show.html.haml
app/views/admin/groups/show.html.haml
+0
-1
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+0
-1
app/views/admin/projects/show.html.haml
app/views/admin/projects/show.html.haml
+0
-1
app/views/admin/shared/_projects_head.html.haml
app/views/admin/shared/_projects_head.html.haml
+0
-5
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+1
-1
app/views/layouts/admin.html.haml
app/views/layouts/admin.html.haml
+3
-1
features/admin/active_tab.feature
features/admin/active_tab.feature
+5
-0
features/steps/admin/admin_active_tab.rb
features/steps/admin/admin_active_tab.rb
+4
-0
No files found.
app/views/admin/dashboard/index.html.haml
View file @
cf8b3692
.admin_dash.row
.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
.ui-box
%h5
%h5
Resque Workers
Resque Workers
...
@@ -19,27 +43,6 @@
...
@@ -19,27 +43,6 @@
%p
%p
%strong
Resque status unknown
%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
.row
.span6
.span6
%h3
Latest projects
%h3
Latest projects
...
...
app/views/admin/groups/index.html.haml
View file @
cf8b3692
=
render
'admin/shared/projects_head'
%h3
.page_title
%h3
.page_title
Groups
Groups
%small
%small
...
...
app/views/admin/groups/show.html.haml
View file @
cf8b3692
=
render
'admin/shared/projects_head'
%h3
.page_title
%h3
.page_title
Group:
#{
@group
.
name
}
Group:
#{
@group
.
name
}
=
link_to
edit_admin_group_path
(
@group
),
class:
"btn right"
do
=
link_to
edit_admin_group_path
(
@group
),
class:
"btn right"
do
...
...
app/views/admin/projects/index.html.haml
View file @
cf8b3692
=
render
'admin/shared/projects_head'
%h3
.page_title
%h3
.page_title
Projects
Projects
=
link_to
'New Project'
,
new_project_path
,
class:
"btn small right"
=
link_to
'New Project'
,
new_project_path
,
class:
"btn small right"
...
...
app/views/admin/projects/show.html.haml
View file @
cf8b3692
=
render
'admin/shared/projects_head'
%h3
.page_title
%h3
.page_title
Project:
#{
@project
.
name_with_namespace
}
Project:
#{
@project
.
name_with_namespace
}
=
link_to
edit_admin_project_path
(
@project
),
class:
"btn right"
do
=
link_to
edit_admin_project_path
(
@project
),
class:
"btn right"
do
...
...
app/views/admin/shared/_projects_head.html.haml
deleted
100644 → 0
View file @
a0aa0212
%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"
app/views/layouts/_head_panel.html.haml
View file @
cf8b3692
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
%li
%li
=
link_to
profile_path
,
title:
"Your Profile"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Your profile'
do
=
link_to
profile_path
,
title:
"Your Profile"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Your profile'
do
%i
.icon-user
%i
.icon-user
%
span
.separator
%
li
.separator
%li
%li
=
render
"layouts/search"
=
render
"layouts/search"
%li
%li
...
...
app/views/layouts/admin.html.haml
View file @
cf8b3692
...
@@ -8,8 +8,10 @@
...
@@ -8,8 +8,10 @@
%ul
.main_menu
%ul
.main_menu
=
nav_link
(
controller: :dashboard
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
controller: :dashboard
,
html_options:
{
class:
'home'
})
do
=
link_to
"Stats"
,
admin_root_path
=
link_to
"Stats"
,
admin_root_path
=
nav_link
(
controller:
[
:projects
,
:groups
]
)
do
=
nav_link
(
controller:
:projects
)
do
=
link_to
"Projects"
,
admin_projects_path
=
link_to
"Projects"
,
admin_projects_path
=
nav_link
(
controller: :groups
)
do
=
link_to
"Groups"
,
admin_groups_path
=
nav_link
(
controller: :users
)
do
=
nav_link
(
controller: :users
)
do
=
link_to
"Users"
,
admin_users_path
=
link_to
"Users"
,
admin_users_path
=
nav_link
(
controller: :logs
)
do
=
nav_link
(
controller: :logs
)
do
...
...
features/admin/active_tab.feature
View file @
cf8b3692
...
@@ -12,6 +12,11 @@ Feature: Admin active tab
...
@@ -12,6 +12,11 @@ Feature: Admin active tab
Then
the active main tab should be Projects
Then
the active main tab should be Projects
And
no other main tabs should be active
And
no other main tabs should be active
Scenario
:
On Admin Groups
Given
I visit admin groups page
Then
the active main tab should be Groups
And
no other main tabs should be active
Scenario
:
On Admin Users
Scenario
:
On Admin Users
Given
I visit admin users page
Given
I visit admin users page
Then
the active main tab should be Users
Then
the active main tab should be Users
...
...
features/steps/admin/admin_active_tab.rb
View file @
cf8b3692
...
@@ -11,6 +11,10 @@ class AdminActiveTab < Spinach::FeatureSteps
...
@@ -11,6 +11,10 @@ class AdminActiveTab < Spinach::FeatureSteps
ensure_active_main_tab
(
'Projects'
)
ensure_active_main_tab
(
'Projects'
)
end
end
Then
'the active main tab should be Groups'
do
ensure_active_main_tab
(
'Groups'
)
end
Then
'the active main tab should be Users'
do
Then
'the active main tab should be Users'
do
ensure_active_main_tab
(
'Users'
)
ensure_active_main_tab
(
'Users'
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment