Commit 5881d0a7 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Unify app/views/shared/issuable/form/_merge_params.html.haml

parent edbd2601
...@@ -3,13 +3,9 @@ ...@@ -3,13 +3,9 @@
- return unless issuable.is_a?(MergeRequest) - return unless issuable.is_a?(MergeRequest)
- return if issuable.closed_without_fork? - return if issuable.closed_without_fork?
-# This check is duplicated below to avoid CE -> EE merge conflicts. - if issuable.can_remove_source_branch?(current_user)
-# This comment and the following line should only exist in CE. .form-group.row
- return unless issuable.can_remove_source_branch?(current_user) .col-sm-10.offset-sm-2
.form-group.row
.col-sm-10.offset-sm-2
- if issuable.can_remove_source_branch?(current_user)
.form-check .form-check
= label_tag 'merge_request[force_remove_source_branch]' do = label_tag 'merge_request[force_remove_source_branch]' do
= hidden_field_tag 'merge_request[force_remove_source_branch]', '0', id: nil = hidden_field_tag 'merge_request[force_remove_source_branch]', '0', id: nil
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment