demarches-normaliennes/app/views/layouts/_flash_messages.html.haml
Pierre de La Morinerie 1ca2ca9121 invite: support remote forms
This allows to keep the draft content when inviting a new user.
2018-08-01 17:41:12 +02:00

12 lines
352 B
Text

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