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
Jérome Perrin
gitlab-ce
Commits
95e6327b
Commit
95e6327b
authored
Dec 23, 2015
by
Josh Frye
Committed by
Josh Frye
Jan 03, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tests
parent
8bfc4645
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/views/projects/buttons/_dropdown.html.haml
app/views/projects/buttons/_dropdown.html.haml
+1
-1
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+1
-1
No files found.
app/views/projects/buttons/_dropdown.html.haml
View file @
95e6327b
...
...
@@ -8,7 +8,7 @@
=
link_to
url_for_new_issue
(
@project
,
only_path:
true
)
do
=
icon
(
'exclamation-circle fw'
)
New issue
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
current_user
.
fork_of
(
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
)
)
-
if
merge_project
%li
=
link_to
new_namespace_project_merge_request_path
(
merge_project
.
namespace
,
merge_project
)
do
...
...
app/views/projects/merge_requests/index.html.haml
View file @
95e6327b
...
...
@@ -6,7 +6,7 @@
.controls
=
render
'shared/issuable/search_form'
,
path:
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
current_user
.
fork_of
(
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
)
)
-
if
merge_project
.pull-left.hidden-xs
=
link_to
new_namespace_project_merge_request_path
(
merge_project
.
namespace
,
merge_project
),
class:
"btn btn-new"
,
title:
"New Merge Request"
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