diff options
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/admin.html.haml | 8 | ||||
-rw-r--r-- | app/views/layouts/auth.html.haml | 8 |
2 files changed, 2 insertions, 14 deletions
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 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 |