mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
Because it can only be used once. But the classname can be used each time the partial is included.
9 lines
344 B
Plaintext
9 lines
344 B
Plaintext
.flash-container
|
|
- if defined? flashes
|
|
- flashes.each do |type, msg|
|
|
.animate-show{"data-controller": "flash", "data-flash-auto-close-value": type == 'success'}
|
|
.flash{type: "#{type}", class: "#{type}"}
|
|
.msg= msg
|
|
.actions
|
|
%button.secondary{"data-action": "click->flash#close"}= t('.dismiss')
|