From 532bec6e564884c2bd5b2bcc7cab929f4f2cabf5 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Sat, 22 Apr 2017 22:22:34 -0400 Subject: Clean up flash display in views (#2336) * Add flashes partial to DRY up admin/auth layouts * Further consolidate flash messages --- app/views/layouts/admin.html.haml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'app/views/layouts/admin.html.haml') diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index 892bcd596..d2cff5e30 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -13,13 +13,7 @@ .content %h2= yield :page_title - - if flash[:notice] - .flash-message.notice - %strong= flash[:notice] - - - if flash[:alert] - .flash-message.alert - %strong= flash[:alert] + = render 'flashes' = yield -- cgit