2024-10-23 15:18:43 +02:00
|
|
|
#flash_messages{ tabindex: '-1', data: { turbo_force: :server } }
|
2024-10-23 14:57:55 +02:00
|
|
|
#flash_message.center{ class: defined?(unique_classname) ? unique_classname : '' }
|
2024-10-18 16:45:40 +02:00
|
|
|
- if flash.any?
|
2018-07-31 17:26:08 +02:00
|
|
|
- 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
|
2024-10-23 15:18:43 +02:00
|
|
|
.alert{ role: flash_role(key), class: flash_class(key, sticky: sticky, fixed: fixed) }
|
|
|
|
- if value.class == Array
|
|
|
|
- value.each do |message|
|
|
|
|
= sanitize_with_link(message)
|
|
|
|
%br
|
|
|
|
- elsif value.present?
|
|
|
|
= sanitize_with_link(value)
|