Registrar: fixed login flash message

This commit is contained in:
Priit Tark 2015-04-13 11:43:22 +03:00
parent 8df6b3bdd1
commit bcb283e2f1
2 changed files with 82 additions and 78 deletions

View file

@ -1,4 +1,4 @@
- if flash[:notice].present? || flash[:alert].present?
#flash
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
.alert{class: type}= flash[:notice] || flash[:alert]
- display = (flash.empty?) ? 'none' : 'block'
#flash{style: "display: #{display};"}
- type = (flash[:notice]) ? 'bg-success' : 'bg-danger'
.alert{class: type}= flash[:notice] || flash[:alert]