2015-11-17 12:53:56 -05:00
|
|
|
= render 'shared/commit_message_container', placeholder: placeholder
|
|
|
|
|
2015-12-18 04:03:34 -05:00
|
|
|
- if @project.empty_repo?
|
2017-04-19 20:37:44 -04:00
|
|
|
= hidden_field_tag 'branch_name', @ref
|
2015-12-18 04:03:34 -05:00
|
|
|
- else
|
|
|
|
- if can?(current_user, :push_code, @project)
|
|
|
|
.form-group.branch
|
2017-06-09 09:08:39 -04:00
|
|
|
= label_tag 'branch_name', _('Target Branch'), class: 'control-label'
|
2015-12-18 04:03:34 -05:00
|
|
|
.col-sm-10
|
2017-06-08 11:33:25 -04:00
|
|
|
= text_field_tag 'branch_name', @branch_name || tree_edit_branch, required: true, class: "form-control js-branch-name ref-name"
|
2015-11-17 12:53:56 -05:00
|
|
|
|
2015-12-18 04:03:34 -05:00
|
|
|
.js-create-merge-request-container
|
2017-06-15 23:02:14 -04:00
|
|
|
= render 'shared/new_merge_request_checkbox'
|
2015-12-18 04:03:34 -05:00
|
|
|
- else
|
2017-04-19 20:37:44 -04:00
|
|
|
= hidden_field_tag 'branch_name', @branch_name || tree_edit_branch
|
2015-12-18 04:03:34 -05:00
|
|
|
= hidden_field_tag 'create_merge_request', 1
|
2015-11-17 12:53:56 -05:00
|
|
|
|
|
|
|
= hidden_field_tag 'original_branch', @ref, class: 'js-original-branch'
|