Clean up flash display in views (#2336)

* Add flashes partial to DRY up admin/auth layouts

* Further consolidate flash messages
This commit is contained in:
Matt Jankowski
2017-04-22 22:22:34 -04:00
committed by Eugen
parent ee82d8a876
commit 532bec6e56
4 changed files with 12 additions and 14 deletions

View File

@ -9,13 +9,7 @@
= image_tag 'logo.png'
.form-container
- if flash[:notice]
.flash-message.notice
%strong= flash[:notice]
- if flash[:alert]
.flash-message.alert
%strong= flash[:alert]
= render 'flashes'
= yield