mirror of
https://0xacab.org/sutty/sutty
synced 2024-06-29 08:26:07 +00:00
10 lines
261 B
Plaintext
10 lines
261 B
Plaintext
- [ :warning, :success ].each do |type|
|
|
- if flash[type]
|
|
.alert{class: "alert-#{type.to_s}", role: 'alert'}
|
|
- if flash[type].respond_to? :each
|
|
%ul
|
|
- flash[type].each do |msg|
|
|
%li= msg
|
|
- else
|
|
= flash[type]
|