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

29 lines
1.2 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
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
2014-09-02 18:07:02 +05:30
%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?
2021-01-03 14:25:43 +05:30
%span{ class: badge_inverse_css_classes }= @merge_request.source_branch
2014-09-02 18:07:02 +05:30
does not exist in
2021-01-03 14:25:43 +05:30
%span{ class: badge_info_css_classes }= @merge_request.source_project_path
2014-09-02 18:07:02 +05:30
- elsif !@merge_request.target_branch_exists?
2021-01-03 14:25:43 +05:30
%span{ class: badge_inverse_css_classes }= @merge_request.target_branch
2014-09-02 18:07:02 +05:30
does not exist in
2021-01-03 14:25:43 +05:30
%span{ class: badge_info_css_classes }= @merge_request.target_project_path
2014-09-02 18:07:02 +05:30
- else
of internal error
%strong
2021-04-29 21:17:54 +05:30
Please close merge request or change branches with existing one