2017-06-21 16:14:41 +02:00
|
|
|
- if flash.any?
|
2017-05-05 13:59:32 +02:00
|
|
|
#flash_message.center
|
2017-06-21 16:14:41 +02:00
|
|
|
- flash.each do |key, value|
|
|
|
|
- if value.class == Array
|
|
|
|
.alert{ class: flash_class(key) }
|
|
|
|
- value.each do |message|
|
2017-07-13 09:46:13 +02:00
|
|
|
= sanitize(message)
|
2017-06-21 16:14:41 +02:00
|
|
|
%br
|
|
|
|
- else
|
|
|
|
.alert{ class: flash_class(key) }
|
2017-07-13 09:46:13 +02:00
|
|
|
= sanitize(value)
|