Moved flash view under shared

This commit is contained in:
Priit Tark 2015-04-16 14:51:19 +03:00
parent 11399958f5
commit 4c660df43e
3 changed files with 19 additions and 21 deletions

View 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]