2018-07-31 17:26:08 +02:00
|
|
|
#flash_messages
|
|
|
|
- if flash.any?
|
|
|
|
#flash_message.center
|
|
|
|
- flash.each do |key, value|
|
2018-08-09 11:15:23 +02:00
|
|
|
- sticky = defined?(sticky) ? sticky : false
|
2018-11-14 16:28:02 +01:00
|
|
|
- fixed = defined?(fixed) ? fixed : false
|
2018-07-31 17:26:08 +02:00
|
|
|
- if value.class == Array
|
2018-11-14 16:28:02 +01:00
|
|
|
.alert{ class: flash_class(key, sticky: sticky, fixed: fixed) }
|
2018-07-31 17:26:08 +02:00
|
|
|
- value.each do |message|
|
|
|
|
= sanitize(message)
|
|
|
|
%br
|
|
|
|
- else
|
2018-11-14 16:28:02 +01:00
|
|
|
.alert{ class: flash_class(key, sticky: sticky, fixed: fixed) }
|
2018-07-31 17:26:08 +02:00
|
|
|
= sanitize(value)
|