mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 17:28:18 +02:00
Moved flash view under shared
This commit is contained in:
parent
11399958f5
commit
4c660df43e
3 changed files with 19 additions and 21 deletions
5
app/views/shared/_flash.haml
Normal file
5
app/views/shared/_flash.haml
Normal file
|
@ -0,0 +1,5 @@
|
|||
- 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]
|
Loading…
Add table
Add a link
Reference in a new issue