Commit d1ea7222 authored by wortschi's avatar wortschi

Migrate alert to shared partial in notifications

Changelog: changed
parent d372b7c2
...@@ -3,16 +3,12 @@ ...@@ -3,16 +3,12 @@
%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') } .gl-alert-body
= sprite_icon('close', css_class: 'gl-icon') %ul
= sprite_icon('error', css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title') - @user.errors.full_messages.each do |msg|
.gl-alert-content %li= msg
.gl-alert-body
%ul
- @user.errors.full_messages.each do |msg|
%li= msg
= hidden_field_tag :notification_type, 'global' = hidden_field_tag :notification_type, 'global'
.row.gl-mt-3 .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