2024-02-20 17:26:13 +01:00
|
|
|
#flash_messages{ aria: { live: 'assertive' } }
|
2018-07-31 17:26:08 +02:00
|
|
|
- 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
|
2022-08-30 16:02:59 +02:00
|
|
|
.alert{ class: flash_class(key, sticky: sticky, fixed: fixed), role: flash_role(key) }
|
2018-07-31 17:26:08 +02:00
|
|
|
- value.each do |message|
|
2023-02-23 10:07:09 +01:00
|
|
|
= sanitize_with_link(message)
|
2018-07-31 17:26:08 +02:00
|
|
|
%br
|
2023-09-28 17:45:39 +02:00
|
|
|
- elsif value.present?
|
2022-08-30 16:02:59 +02:00
|
|
|
.alert{ class: flash_class(key, sticky: sticky, fixed: fixed), role: flash_role(key) }
|
2023-02-23 10:07:09 +01:00
|
|
|
= sanitize_with_link(value)
|