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
Tatuya Kamada
gitlab-ce
Commits
48e27567
Commit
48e27567
authored
Dec 04, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5755 from PlugIN73/patch-1
Fix bug with showing create merge request button
parents
a4cbdbb1
6f072511
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
app/helpers/compare_helper.rb
app/helpers/compare_helper.rb
+3
-1
No files found.
app/helpers/compare_helper.rb
View file @
48e27567
module
CompareHelper
module
CompareHelper
def
compare_to_mr_button?
def
compare_to_mr_button?
params
[
:from
].
present?
&&
params
[
:to
].
present?
&&
@project
.
merge_requests_enabled
&&
params
[
:from
].
present?
&&
params
[
:to
].
present?
&&
@repository
.
branch_names
.
include?
(
params
[
:from
])
&&
@repository
.
branch_names
.
include?
(
params
[
:from
])
&&
@repository
.
branch_names
.
include?
(
params
[
:to
])
&&
@repository
.
branch_names
.
include?
(
params
[
:to
])
&&
params
[
:from
]
!=
params
[
:to
]
&&
params
[
:from
]
!=
params
[
:to
]
&&
...
...
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