about summary refs log tree commit diff
path: root/app/views/layouts/auth.html.haml
diff options
context:
space:
mode:
authorMatt Jankowski <mjankowski@thoughtbot.com>2017-04-22 22:22:34 -0400
committerEugen <eugen@zeonfederated.com>2017-04-23 04:22:34 +0200
commit532bec6e564884c2bd5b2bcc7cab929f4f2cabf5 (patch)
treebfaea49ce3400ad9341a37638ede98aff7007f17 /app/views/layouts/auth.html.haml
parentee82d8a8761f0bedc97f5e79565b7c5142c1b8bd (diff)
Clean up flash display in views (#2336)
* Add flashes partial to DRY up admin/auth layouts

* Further consolidate flash messages
Diffstat (limited to 'app/views/layouts/auth.html.haml')
-rw-r--r--app/views/layouts/auth.html.haml8
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/layouts/auth.html.haml b/app/views/layouts/auth.html.haml
index 899690419..b2ceed12a 100644
--- a/app/views/layouts/auth.html.haml
+++ b/app/views/layouts/auth.html.haml
@@ -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