Commit d1ea7222 authored by wortschi's avatar wortschi

Migrate alert to shared partial in notifications

Changelog: changed
parent d372b7c2
......@@ -3,12 +3,8 @@
%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
= render 'shared/global_alert',
variant: :danger do
.gl-alert-body
%ul
- @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