// Display alert messages to the user

- flash.each do |name,msg|
  - case name
  - when 'timedout'
    / Workaround for Devise sometimes sending "true"
    - next
  - when 'notice'
    - cls='callout warning alert-callout-subtle radius'
  - when 'error'
    - cls='callout alert alert-callout-subtle radius'
  - else
    - cls='callout primary alert-callout-subtle radius'

  div class=cls data-closable=true
    strong< 
      - if msg.is_a? Array
        =safe_join(msg, "<br />".html_safe)
      - else
        =msg
