From 7a40563f2834e253c115ea7af994dcd56c7b4b3c Mon Sep 17 00:00:00 2001
From: Marvin Karegyeya <marvinelly18@gmail.com>
Date: Fri, 25 Jun 2021 16:27:17 +0000
Subject: [PATCH] Update markup in diffs/_warning.html.haml

---
 app/views/projects/diffs/_warning.html.haml | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/app/views/projects/diffs/_warning.html.haml b/app/views/projects/diffs/_warning.html.haml
index 30b0631b465e..1d9b1b13d5cb 100644
--- a/app/views/projects/diffs/_warning.html.haml
+++ b/app/views/projects/diffs/_warning.html.haml
@@ -1,9 +1,8 @@
-.gl-alert.gl-alert-warning.gl-mb-5
-  %button.js-close.gl-alert-dismiss{ type: 'button', 'aria-label' => _('Dismiss') }
-    = sprite_icon('close', size: 16, css_class: 'gl-icon')
-  = sprite_icon('warning', size: 16, css_class: 'gl-icon gl-alert-icon')
-  %h4.gl-alert-title
-    = _("Too many changes to show.")
+= render 'shared/global_alert',
+  title: _('Too many changes to show.'),
+  variant: :warning,
+  is_contained: true,
+  alert_class: 'gl-mb-5' do
   .gl-alert-body
     = html_escape(_("To preserve performance only %{strong_open}%{display_size} of %{real_size}%{strong_close} files are displayed.")) % { display_size: diff_files.size, real_size: diff_files.real_size, strong_open: '<strong>'.html_safe, strong_close: '</strong>'.html_safe }
   .gl-alert-actions
-- 
GitLab