From 7abfbc7587a1c37729e8c88614c789c72830a918 Mon Sep 17 00:00:00 2001 From: Gopesh Tulsyan Date: Tue, 3 Jun 2014 17:58:43 +0530 Subject: [PATCH] Modified rendering of splash in application layout --- app/views/layouts/application.html.haml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 4315dbce..f4d675fe 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -21,13 +21,18 @@ - if controller.class.name.split("::").first=="Admin" = render 'layouts/admin' -else - .container#messages - .row - .col-md-12 + - if content_for :splash + %div#splash + #messages = render 'layouts/messages' - = yield :splash - .container#content - = yield + = yield :splash + -else + .container#messages + .row + .col-md-12 + = render 'layouts/messages' + .container#content + = yield #footer .container