debian-mirror-gitlab/app/views/projects/merge_requests/invalid.html.haml

31 lines
1.4 KiB
Text
Raw Normal View History

2021-04-29 21:17:54 +05:30
- page_title "#{@merge_request.title} (#{@merge_request.to_reference}", _("Merge requests")
2021-01-03 14:25:43 +05:30
- badge_css_classes = "badge gl-text-white"
- badge_info_css_classes = "#{badge_css_classes} badge-info"
- badge_inverse_css_classes = "#{badge_css_classes} badge-inverse"
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
2021-01-03 14:25:43 +05:30
.gl-alert.gl-alert-danger
2021-09-04 01:27:46 +05:30
.gl-alert-container
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
.gl-alert-content{ role: 'alert' }
%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?
%span{ class: badge_inverse_css_classes }= @merge_request.source_branch
does not exist in
%span{ class: badge_info_css_classes }= @merge_request.source_project_path
- elsif !@merge_request.target_branch_exists?
%span{ class: badge_inverse_css_classes }= @merge_request.target_branch
does not exist in
%span{ class: badge_info_css_classes }= @merge_request.target_project_path
- else
of internal error
2014-09-02 18:07:02 +05:30
2021-09-04 01:27:46 +05:30
%strong
Please close merge request or change branches with existing one