Commit ba30d7b4 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch...

Merge branch '325363-migrate-to-shared-alert-haml-partial-in-app-views-profiles-notifications-show-html-haml' into 'master'

Migrate alert to shared partial in profiles/notifications/show.html.haml

See merge request gitlab-org/gitlab!82693
parents a4c50104 d1ea7222
......@@ -3,16 +3,12 @@
%div
- if @user.errors.any?
.gl-alert.gl-alert-danger.gl-my-5
.gl-alert-container
%button.js-close.btn.gl-dismiss-btn.btn-default.btn-sm.gl-button.btn-default-tertiary.btn-icon{ type: 'button', 'aria-label' => _('Dismiss') }
= sprite_icon('close', css_class: 'gl-icon')
= sprite_icon('error', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
.gl-alert-content
.gl-alert-body
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
= render 'shared/global_alert',
variant: :danger do
.gl-alert-body
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
= hidden_field_tag :notification_type, 'global'
.row.gl-mt-3
......
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