2020-07-28 23:09:34 +05:30
|
|
|
- page_title "#{@merge_request.title} (#{@merge_request.to_reference}", _("Merge Requests")
|
2015-09-25 12:07:36 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.merge-request
|
2017-09-10 17:25:29 +05:30
|
|
|
= render "projects/merge_requests/mr_title"
|
|
|
|
= render "projects/merge_requests/mr_box"
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
.alert.alert-danger
|
|
|
|
%p
|
|
|
|
We cannot render this merge request properly because
|
|
|
|
- if @merge_request.for_fork? && !@merge_request.source_project
|
|
|
|
fork project was removed
|
|
|
|
- elsif !@merge_request.source_branch_exists?
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-inverse= @merge_request.source_branch
|
2014-09-02 18:07:02 +05:30
|
|
|
does not exist in
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-info= @merge_request.source_project_path
|
2014-09-02 18:07:02 +05:30
|
|
|
- elsif !@merge_request.target_branch_exists?
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-inverse= @merge_request.target_branch
|
2014-09-02 18:07:02 +05:30
|
|
|
does not exist in
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.badge.badge-info= @merge_request.target_project_path
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
|
|
|
of internal error
|
|
|
|
|
|
|
|
%strong
|
|
|
|
Please close Merge Request or change branches with existing one
|
|
|
|
|