mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
8 lines
295 B
Plaintext
8 lines
295 B
Plaintext
#flashes
|
||
- if defined? flashes
|
||
- flashes.each do |type, msg|
|
||
%alert.animate-show{"data-controller": "flash"}
|
||
.flash{type: "#{type}", class: "alert-box #{type == 'error' ? 'alert' : type}"}
|
||
%span= msg
|
||
%a.small.close{"data-action": "click->flash#close"} ×
|