internetee-registry/app/views/shared/_flash.haml
2015-04-16 16:31:22 +03:00

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]