Commit 086f9c68 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/325374/alertPartialMergeInvalid' into 'master'

Migrate invalid merge request alert to global_alert partial

See merge request gitlab-org/gitlab!82898
parents e1dd2d51 7bb5f18a
...@@ -9,16 +9,15 @@ ...@@ -9,16 +9,15 @@
= render "projects/merge_requests/mr_title" = render "projects/merge_requests/mr_title"
= render "projects/merge_requests/mr_box" = render "projects/merge_requests/mr_box"
.gl-alert.gl-alert-danger = render 'shared/global_alert',
.gl-alert-container variant: :danger,
= sprite_icon('error', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') dismissible: false do
.gl-alert-content{ role: 'alert' } .gl-alert-body
.gl-alert-body - if @merge_request.for_fork? && !@merge_request.source_project
- if @merge_request.for_fork? && !@merge_request.source_project = err_fork_project_removed
= err_fork_project_removed - elsif !@merge_request.source_branch_exists?
- 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) }
= 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?
- 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) }
= 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
- else = err_internal
= err_internal
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment