2015-11-26 14:37:03 +05:30
|
|
|
= render 'shared/commit_message_container', placeholder: placeholder
|
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
- if @project.empty_repo?
|
2017-08-17 22:00:37 +05:30
|
|
|
= hidden_field_tag 'branch_name', @ref
|
2016-01-14 18:37:52 +05:30
|
|
|
- else
|
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
.form-group.branch
|
2017-08-17 22:00:37 +05:30
|
|
|
= label_tag 'branch_name', 'Target branch', class: 'control-label'
|
2016-01-14 18:37:52 +05:30
|
|
|
.col-sm-10
|
2017-08-17 22:00:37 +05:30
|
|
|
= render 'shared/branch_switcher'
|
2015-11-26 14:37:03 +05:30
|
|
|
|
2016-01-14 18:37:52 +05:30
|
|
|
.js-create-merge-request-container
|
|
|
|
.checkbox
|
|
|
|
- nonce = SecureRandom.hex
|
|
|
|
= label_tag "create_merge_request-#{nonce}" do
|
|
|
|
= check_box_tag 'create_merge_request', 1, true, class: 'js-create-merge-request', id: "create_merge_request-#{nonce}"
|
|
|
|
Start a <strong>new merge request</strong> with these changes
|
|
|
|
- else
|
2017-08-17 22:00:37 +05:30
|
|
|
= hidden_field_tag 'branch_name', @branch_name || tree_edit_branch
|
2016-01-14 18:37:52 +05:30
|
|
|
= hidden_field_tag 'create_merge_request', 1
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
= hidden_field_tag 'original_branch', @ref, class: 'js-original-branch'
|