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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
1.6 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
- err_fork_project_removed = s_("MergeRequest|Can't show this merge request because the fork project was deleted.")
2022-03-02 08:16:31 +05:30
- err_source_branch = s_("MergeRequest|Can't show this merge request because the source branch %{branch_badge} is missing from project %{path_badge}. Close this merge request or update the source branch.")
- err_target_branch = s_("MergeRequest|Can't show this merge request because the target branch %{branch_badge} is missing from project %{path_badge}. Close this merge request or update the target branch.")
2022-01-26 12:08:38 +05:30
- 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
2022-06-21 17:19:12 +05:30
= render Pajamas::AlertComponent.new(variant: :danger,
2022-07-16 23:28:13 +05:30
dismissible: false) do |c|
2023-07-09 08:55:56 +05:30
- c.with_body do
2022-05-07 20:08:51 +05:30
- if @merge_request.for_fork? && !@merge_request.source_project
= err_fork_project_removed
- elsif !@merge_request.source_branch_exists?
= err_source_branch.html_safe % { branch_badge: gl_badge_tag(@merge_request.source_branch, variant: :info, size: :sm), path_badge: gl_badge_tag(@merge_request.source_project_path, variant: :info, size: :sm) }
- elsif !@merge_request.target_branch_exists?
= err_target_branch.html_safe % { branch_badge: gl_badge_tag(@merge_request.target_branch, variant: :info, size: :sm), path_badge: gl_badge_tag(@merge_request.source_project_path, variant: :info, size: :sm) }
- else
= err_internal