mirror of
https://0xacab.org/sutty/sutty
synced 2024-07-01 11:46: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]
|