mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
5 lines
296 B
Text
5 lines
296 B
Text
- display = (flash[:notice] || flash[:alert] || flash[:warning]) ? 'block' : 'none'
|
|
#flash{style: "display: #{display};"}
|
|
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
|
|
- type = 'bg-warning' if flash[:warning]
|
|
.alert{class: type}= flash[:notice] || flash[:alert] || flash[:warning]
|