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
ee957d3a
Commit
ee957d3a
authored
Jan 10, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move merge params to their own partial
parent
f40e8837
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
16 deletions
+22
-16
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+2
-0
app/views/shared/issuable/form/_branch_chooser.html.haml
app/views/shared/issuable/form/_branch_chooser.html.haml
+0
-16
app/views/shared/issuable/form/_merge_params.html.haml
app/views/shared/issuable/form/_merge_params.html.haml
+20
-0
No files found.
app/views/shared/issuable/_form.html.haml
View file @
ee957d3a
...
...
@@ -45,6 +45,8 @@
=
render
'shared/issuable/form/branch_chooser'
,
issuable:
issuable
,
form:
form
=
render
'shared/issuable/form/merge_params'
,
issuable:
issuable
-
if
@merge_request_for_resolving_discussions
.form-group
.col-sm-10.col-sm-offset-2
...
...
app/views/shared/issuable/form/_branch_chooser.html.haml
View file @
ee957d3a
...
...
@@ -19,19 +19,3 @@
-
if
issuable
.
new_record?
=
link_to
'Change branches'
,
mr_change_branches_path
(
issuable
)
.form-group
.col-sm-10.col-sm-offset-2
-
if
issuable
.
can_remove_source_branch?
(
current_user
)
.checkbox
=
label_tag
'merge_request[force_remove_source_branch]'
do
=
hidden_field_tag
'merge_request[force_remove_source_branch]'
,
'0'
,
id:
nil
=
check_box_tag
'merge_request[force_remove_source_branch]'
,
'1'
,
issuable
.
force_remove_source_branch?
Remove source branch when merge request is accepted.
-
if
issuable
.
new_record?
.checkbox
=
label_tag
'merge_request[squash]'
do
=
check_box_tag
'merge_request[squash]'
,
nil
Squash commits when merge request is accepted.
=
link_to
'Learn more'
,
help_page_path
(
'user/project/merge_requests/squash_before_merge'
)
app/views/shared/issuable/form/_merge_params.html.haml
0 → 100644
View file @
ee957d3a
-
issuable
=
local_assigns
.
fetch
(
:issuable
)
-
return
unless
issuable
.
is_a?
(
MergeRequest
)
-
return
if
issuable
.
closed_without_fork?
.form-group
.col-sm-10.col-sm-offset-2
-
if
issuable
.
can_remove_source_branch?
(
current_user
)
.checkbox
=
label_tag
'merge_request[force_remove_source_branch]'
do
=
hidden_field_tag
'merge_request[force_remove_source_branch]'
,
'0'
,
id:
nil
=
check_box_tag
'merge_request[force_remove_source_branch]'
,
'1'
,
issuable
.
force_remove_source_branch?
Remove source branch when merge request is accepted.
.checkbox
=
label_tag
'merge_request[squash]'
do
=
hidden_field_tag
'merge_request[squash]'
,
'0'
,
id:
nil
=
check_box_tag
'merge_request[squash]'
,
'1'
,
issuable
.
squash
Squash commits when merge request is accepted.
=
link_to
'Learn more'
,
help_page_path
(
'user/project/merge_requests/squash_before_merge'
)
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