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

28 lines
1.9 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")
2022-01-26 12:08:38 +05:30
- badge_start = '<span class="badge badge-pill gl-badge sm badge-info">'.html_safe
- badge_end = '</span>'.html_safe
- err_fork_project_removed = s_("MergeRequest|Can't show this merge request because the fork project was deleted.")
- err_source_branch = s_("MergeRequest|Can't show this merge request because the source branch %{badge_start}%{source_branch}%{badge_end} is missing from project %{badge_start}%{project_path}%{badge_end}. Close this merge request or update the source branch.")
- err_target_branch = s_("MergeRequest|Can't show this merge request because the target branch %{badge_start}%{target_branch}%{badge_end} is missing from project %{badge_start}%{project_path}%{badge_end}. Close this merge request or update the target branch.")
- err_internal = s_("MergeRequest|Can't show this merge request because of an internal error. Contact your administrator.")
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' }
2022-01-26 12:08:38 +05:30
.gl-alert-body
2021-09-04 01:27:46 +05:30
- if @merge_request.for_fork? && !@merge_request.source_project
2022-01-26 12:08:38 +05:30
= err_fork_project_removed
2021-09-04 01:27:46 +05:30
- elsif !@merge_request.source_branch_exists?
2022-01-26 12:08:38 +05:30
= err_source_branch.html_safe % { badge_start: badge_start, badge_end: badge_end, source_branch: @merge_request.source_branch, project_path: @merge_request.source_project_path }
2021-09-04 01:27:46 +05:30
- elsif !@merge_request.target_branch_exists?
2022-01-26 12:08:38 +05:30
= err_target_branch.html_safe % { badge_start: badge_start, badge_end: badge_end, target_branch: @merge_request.target_branch, project_path: @merge_request.source_project_path }
2021-09-04 01:27:46 +05:30
- else
2022-01-26 12:08:38 +05:30
= err_internal