debshots/app/views/layouts/_messages.slim

20 lines
545 B
Text

// Display alert messages to the user
- if flash
- flash.each do |name,msg|
- case name
- when 'timedout'
/ Workaround for Devise sometimes sending "true"
- next
- when 'notice'
.callout.warning data-closable=true
= fa_icon 'info-circle wobble 2x'
strong< = msg
- when 'error'
.callout.alert data-closable=true
= fa_icon 'meh-o wobble 2x'
strong< = msg
- else
.callout.primary data-closable=true
= fa_icon 'info-circle wobble 2x'
strong< = msg