demarches-normaliennes/app/views/layouts/_flash_messages.html.haml
2018-08-13 08:34:10 +02:00

13 lines
421 B
Text

#flash_messages
- if flash.any?
#flash_message.center
- flash.each do |key, value|
- sticky = defined?(sticky) ? sticky : false
- if value.class == Array
.alert{ class: flash_class(key, sticky) }
- value.each do |message|
= sanitize(message)
%br
- else
.alert{ class: flash_class(key, sticky) }
= sanitize(value)