- issuable = local_assigns.fetch(:issuable) - form = local_assigns.fetch(:form) - return unless issuable.is_a?(MergeRequest) - return if issuable.closed_without_fork? - source_title, target_title = format_mr_branch_names(@merge_request) .form-group.row.d-flex.gl-pl-3-deprecated-no-really-do-not-use-me.gl-pr-3-deprecated-no-really-do-not-use-me.branch-selector .align-self-center %span = _('From %{source_title} into').html_safe % { source_title: source_title } - if issuable.new_record? %code#js-target-branch-title= target_title   = link_to _('Change branches'), mr_change_branches_path(issuable) - elsif issuable.for_fork? %code= issuable.target_project_path + ":" - unless issuable.new_record? %span.dropdown.gl-ml-2.d-inline-block = form.hidden_field(:target_branch, { class: 'target_branch js-target-branch-select ref-name mw-xl', data: { placeholder: _('Select branch'), endpoint: refs_project_path(@project, sort: 'updated_desc', find: 'branches') }}) %hr