debshots/app/views/layouts/_messages.slim

17 lines
608 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.alert-callout-subtle.radius data-closable=true
strong< = safe_join(msg, "<br />".html_safe)
- when 'error'
.callout.alert.alert-callout-subtle.radius data-closable=true
strong< = safe_join(msg, "<br />".html_safe)
- else
.callout.primary.alert-callout-subtle.radius data-closable=true
strong< = safe_join(msg, "<br />".html_safe)