mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-06 15:41:09 -05:00
* All alerts are currently shoved into either red (error) or green (success) * Add support for yellow (warning) and blue (info) alert types Solution from this Stack Overflow: http://stackoverflow.com/questions/31094771/rails-bootstrap-haml-how-to-convert-this-code-to-display-flash-messages-to
7 lines
238 B
Plaintext
7 lines
238 B
Plaintext
- flash.each do |type, content|
|
|
%div{ class: build_alert_classes(type), role: "alert" }
|
|
%button.close{ type: "button", "data-dismiss" => "alert" }
|
|
%span{ "aria-hidden" => true } ×
|
|
%span.sr-only Close
|
|
= content
|