Commit d1ea7222 authored by wortschi's avatar wortschi

Migrate alert to shared partial in notifications

Changelog: changed
parent d372b7c2
...@@ -3,12 +3,8 @@ ...@@ -3,12 +3,8 @@
%div %div
- if @user.errors.any? - if @user.errors.any?
.gl-alert.gl-alert-danger.gl-my-5 = render 'shared/global_alert',
.gl-alert-container variant: :danger do
%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 .gl-alert-body
%ul %ul
- @user.errors.full_messages.each do |msg| - @user.errors.full_messages.each do |msg|
......
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