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
a5e4e9cd
Commit
a5e4e9cd
authored
Mar 14, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some missing permissions conditions, as well as haml formatting
parent
d2297a30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
30 deletions
+33
-30
app/views/groups/_settings_head.html.haml
app/views/groups/_settings_head.html.haml
+28
-23
app/views/layouts/nav/_group.html.haml
app/views/layouts/nav/_group.html.haml
+5
-7
No files found.
app/views/groups/_settings_head.html.haml
View file @
a5e4e9cd
...
...
@@ -9,25 +9,30 @@
=
link_to
projects_group_path
(
@group
),
title:
'Projects'
do
%span
Projects
-
if
can_edit
-
if
ldap_enabled?
=
nav_link
(
path:
'ldap_group_links#index'
)
do
=
link_to
group_ldap_group_links_path
(
@group
),
title:
'LDAP Group'
do
%span
LDAP Group
=
nav_link
(
path:
'hooks#index'
)
do
=
link_to
group_hooks_path
(
@group
),
title:
'Webhooks'
do
%span
Webhooks
=
nav_link
(
path:
'audit_events#index'
)
do
=
link_to
group_audit_events_path
(
@group
),
title:
'Audit Events'
do
%span
Audit Events
-
if
@group
.
shared_runners_enabled?
&&
@group
.
shared_runners_minutes_limit_enabled?
=
nav_link
(
path:
'pipeline_quota#index'
)
do
=
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
...
...
app/views/layouts/nav/_group.html.haml
View file @
a5e4e9cd
-
can_admin_group
=
can?
(
current_user
,
:admin_group
,
@group
)
-
can_edit
=
can?
(
current_user
,
:admin_group
,
@group
)
.scrolling-tabs-container
{
class:
nav_control_class
}
.fade-left
=
icon
(
'angle-left'
)
...
...
@@ -30,8 +29,7 @@
=
link_to
group_analytics_path
(
@group
),
title:
'Contribution Analytics'
,
data:
{
placement:
'right'
}
do
%span
Contribution Analytics
-
if
current_user
-
if
can_admin_group
||
can_edit
-
if
current_user
&&
can_admin_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
%span
...
...
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