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
f7b46fa5
Commit
f7b46fa5
authored
Feb 06, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve/tab_names' into 'master'
Add icons and better names to Project/Group nav
parents
90ab30b7
0a3d50eb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
9 deletions
+15
-9
app/views/groups/edit.html.haml
app/views/groups/edit.html.haml
+4
-2
app/views/projects/_settings_nav.html.haml
app/views/projects/_settings_nav.html.haml
+7
-5
features/steps/project/project_active_tab.rb
features/steps/project/project_active_tab.rb
+4
-2
No files found.
app/views/groups/edit.html.haml
View file @
f7b46fa5
...
@@ -4,13 +4,15 @@
...
@@ -4,13 +4,15 @@
%li
.active
%li
.active
=
link_to
'#tab-edit'
,
'data-toggle'
=>
'tab'
do
=
link_to
'#tab-edit'
,
'data-toggle'
=>
'tab'
do
%i
.icon-edit
%i
.icon-edit
Edit
Group
Group
%li
%li
=
link_to
'#tab-projects'
,
'data-toggle'
=>
'tab'
do
=
link_to
'#tab-projects'
,
'data-toggle'
=>
'tab'
do
%i
.icon-folder-close
%i
.icon-folder-close
Projects
Projects
%li
%li
=
link_to
'Remove'
,
'#tab-remove'
,
'data-toggle'
=>
'tab'
=
link_to
'#tab-remove'
,
'data-toggle'
=>
'tab'
do
%i
.icon-remove-sign
Remove
.col-md-10
.col-md-10
.tab-content
.tab-content
...
...
app/views/projects/_settings_nav.html.haml
View file @
f7b46fa5
%ul
.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20
%ul
.nav.nav-pills.nav-stacked.nav-stacked-menu.append-bottom-20
.project-settings-nav
=
nav_link
(
path:
'projects#edit'
)
do
=
nav_link
(
path:
'projects#edit'
)
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
=
link_to
edit_project_path
(
@project
),
class:
"stat-tab tab "
do
Edit Project
%i
.icon-edit
Project
=
nav_link
(
controller:
[
:team_members
,
:teams
])
do
=
nav_link
(
controller:
[
:team_members
,
:teams
])
do
=
link_to
project_team_index_path
(
@project
),
class:
"team-tab tab"
do
=
link_to
project_team_index_path
(
@project
),
class:
"team-tab tab"
do
%i
.icon-group
Members
Members
=
nav_link
(
controller: :deploy_keys
)
do
=
nav_link
(
controller: :deploy_keys
)
do
=
link_to
project_deploy_keys_path
(
@project
)
do
=
link_to
project_deploy_keys_path
(
@project
)
do
%
span
%
i
.icon-key
Deploy Keys
Deploy Keys
=
nav_link
(
controller: :hooks
)
do
=
nav_link
(
controller: :hooks
)
do
=
link_to
project_hooks_path
(
@project
)
do
=
link_to
project_hooks_path
(
@project
)
do
%
span
%
i
.icon-link
Web Hooks
Web Hooks
=
nav_link
(
controller: :services
)
do
=
nav_link
(
controller: :services
)
do
=
link_to
project_services_path
(
@project
)
do
=
link_to
project_services_path
(
@project
)
do
%
span
%
i
.icon-cogs
Services
Services
features/steps/project/project_active_tab.rb
View file @
f7b46fa5
...
@@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps
...
@@ -57,7 +57,9 @@ class ProjectActiveTab < Spinach::FeatureSteps
end
end
Given
'I click the "Edit" tab'
do
Given
'I click the "Edit" tab'
do
click_link
(
'Edit'
)
within
'.project-settings-nav'
do
click_link
(
'Project'
)
end
end
end
Given
'I click the "Hooks" tab'
do
Given
'I click the "Hooks" tab'
do
...
@@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
...
@@ -73,7 +75,7 @@ class ProjectActiveTab < Spinach::FeatureSteps
end
end
Then
'the active sub nav should be Edit'
do
Then
'the active sub nav should be Edit'
do
ensure_active_sub_nav
(
'
Edit
Project'
)
ensure_active_sub_nav
(
'Project'
)
end
end
Then
'the active sub nav should be Hooks'
do
Then
'the active sub nav should be Hooks'
do
...
...
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