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
25a1ef69
Commit
25a1ef69
authored
Oct 03, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce policy check for clusters navigation option
parent
25076520
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-0
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+5
-5
No files found.
app/helpers/projects_helper.rb
View file @
25a1ef69
...
@@ -293,6 +293,7 @@ module ProjectsHelper
...
@@ -293,6 +293,7 @@ module ProjectsHelper
snippets: :read_project_snippet
,
snippets: :read_project_snippet
,
settings: :admin_project
,
settings: :admin_project
,
builds: :read_build
,
builds: :read_build
,
clusters: :read_cluster
,
labels: :read_label
,
labels: :read_label
,
issues: :read_issue
,
issues: :read_issue
,
project_members: :read_project_member
,
project_members: :read_project_member
,
...
...
app/views/layouts/nav/sidebar/_project.html.haml
View file @
25a1ef69
...
@@ -189,11 +189,11 @@
...
@@ -189,11 +189,11 @@
%span
%span
Charts
Charts
-
# - if project_nav_tab? :clusters TODO @shinya @ayufan
-
if
project_nav_tab?
:clusters
=
nav_link
(
controller: :clusters
)
do
=
nav_link
(
controller: :clusters
)
do
=
link_to
project_clusters_path
(
@project
),
title:
'Clusters'
,
class:
'shortcuts-clusters'
do
=
link_to
project_clusters_path
(
@project
),
title:
'Clusters'
,
class:
'shortcuts-clusters'
do
%span
%span
Clusters
Clusters
-
if
project_nav_tab?
:wiki
-
if
project_nav_tab?
:wiki
=
nav_link
(
controller: :wikis
)
do
=
nav_link
(
controller: :wikis
)
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