summaryrefslogtreecommitdiff
path: root/app/views/layouts/_flash.html.haml
blob: 92572f0308c5fdff0e68b49f19c2ffff461204f1 (plain)
1
2
3
4
5
6
7
8
9
.flash-container.flash-container-page.sticky
  -# We currently only support `alert`, `notice`, `success`
  - flash.each do |key, value|
    -# Don't show a flash message if the message is nil
    - if value
      %div{ class: "flash-content flash-#{key} rounded" }
        %span= value
        %div{ class: "close-icon-wrapper js-close-icon" }
          = sprite_icon('close', size: 16, css_class: 'close-icon')