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
Léo-Paul Géneau
gitlab-ce
Commits
63900c1d
Commit
63900c1d
authored
Jun 13, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass can_edit and access to partial.
parent
35840468
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
app/views/layouts/nav/_project.html.haml
app/views/layouts/nav/_project.html.haml
+1
-1
app/views/layouts/nav/_project_settings.html.haml
app/views/layouts/nav/_project_settings.html.haml
+0
-2
No files found.
app/views/layouts/nav/_project.html.haml
View file @
63900c1d
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
=
icon
(
'cog'
)
=
icon
(
'cog'
)
=
icon
(
'caret-down'
)
=
icon
(
'caret-down'
)
%ul
.dropdown-menu.dropdown-menu-align-right
%ul
.dropdown-menu.dropdown-menu-align-right
=
render
'layouts/nav/project_settings'
=
render
'layouts/nav/project_settings'
,
access:
access
,
can_edit:
can_edit
-
if
can_edit
||
access
-
if
can_edit
||
access
%li
.divider
%li
.divider
-
if
can_edit
-
if
can_edit
...
...
app/views/layouts/nav/_project_settings.html.haml
View file @
63900c1d
-
access
=
user_max_access_in_project
(
current_user
.
id
,
@project
)
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
-
if
project_nav_tab?
:team
-
if
project_nav_tab?
:team
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
=
nav_link
(
controller:
[
:project_members
,
:teams
])
do
=
link_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
title:
'Members'
,
class:
'team-tab tab'
do
=
link_to
namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
title:
'Members'
,
class:
'team-tab tab'
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