22 lines
1.6 KiB
Text
22 lines
1.6 KiB
Text
- page_title "#{@merge_request.title} (#{@merge_request.to_reference}", _("Merge requests")
|
|
|
|
- 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 %{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.")
|
|
- err_internal = s_("MergeRequest|Can't show this merge request because of an internal error. Contact your administrator.")
|
|
|
|
.merge-request
|
|
= render "projects/merge_requests/mr_title"
|
|
= render "projects/merge_requests/mr_box"
|
|
|
|
= render Pajamas::AlertComponent.new(variant: :danger,
|
|
dismissible: false) do |c|
|
|
- c.with_body do
|
|
- 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
|