mirror of
https://github.com/internetee/registry.git
synced 2025-08-01 07:26:22 +02:00
4 lines
196 B
Text
4 lines
196 B
Text
- display = (flash.empty?) ? 'none' : 'block'
|
|
#flash{style: "display: #{display};"}
|
|
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
|
.alert{class: type}= flash[:notice] || flash[:alert]
|