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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
51cbb792
Commit
51cbb792
authored
Mar 14, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed "Edit Group" subtab to "General" and moved it
to the first option inside said subtab. Also code cleanup
parent
a5e4e9cd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
12 deletions
+8
-12
app/views/groups/_settings_head.html.haml
app/views/groups/_settings_head.html.haml
+5
-8
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+2
-3
features/steps/groups_management.rb
features/steps/groups_management.rb
+1
-1
No files found.
app/views/groups/_settings_head.html.haml
View file @
51cbb792
-
can_admin_group
=
can?
(
current_user
,
:admin_group
,
@group
)
-
can_edit
=
can?
(
current_user
,
:admin_group
,
@group
)
=
content_for
:sub_nav
do
.scrolling-tabs-container.sub-nav-scroll
=
render
'shared/nav_scroll'
.nav-links.sub-nav.scrolling-tabs
%ul
{
class:
container_class
}
=
nav_link
(
path:
'groups#edit'
)
do
=
link_to
edit_group_path
(
@group
),
title:
'General'
do
%span
General
=
nav_link
(
path:
'groups#projects'
)
do
=
link_to
projects_group_path
(
@group
),
title:
'Projects'
do
%span
...
...
@@ -31,9 +34,3 @@
=
link_to
group_audit_events_path
(
@group
),
title:
'Pipelines quota'
do
%span
Pipelines quota
-
if
can_edit
&&
can_admin_group
=
nav_link
(
path:
'groups#edit'
)
do
=
link_to
edit_group_path
(
@group
),
title:
'Edit Group'
do
%span
Edit Group
app/views/layouts/nav/_group.html.haml
View file @
51cbb792
-
can_admin_group
=
can?
(
current_user
,
:admin_group
,
@group
)
.scrolling-tabs-container
{
class:
nav_control_class
}
.fade-left
=
icon
(
'angle-left'
)
...
...
@@ -29,8 +28,8 @@
=
link_to
group_analytics_path
(
@group
),
title:
'Contribution Analytics'
,
data:
{
placement:
'right'
}
do
%span
Contribution Analytics
-
if
current_user
&&
can
_admin_group
-
if
current_user
&&
can
?
(
current_user
,
:admin_group
,
@group
)
=
nav_link
(
path:
%w[groups#projects groups#edit ldap_group_links#index hooks#index audit_events#index pipeline_quota#index]
)
do
=
link_to
projects
_group_path
(
@group
),
title:
'Settings'
do
=
link_to
edit
_group_path
(
@group
),
title:
'Settings'
do
%span
Settings
features/steps/groups_management.rb
View file @
51cbb792
...
...
@@ -50,7 +50,7 @@ class Spinach::Features::GroupsManagement < Spinach::FeatureSteps
click_link
'Settings'
end
page
.
within
'.sub-nav'
do
click_link
'
Edit Group
'
click_link
'
General
'
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