From b49842cdd288224352971274416a00021716af13 Mon Sep 17 00:00:00 2001 From: Brian Bommarito Date: Wed, 4 Jul 2012 05:24:52 -0400 Subject: [PATCH] Finishing up the layout reorganization. --- app/views/layouts/_footer.html.haml | 1 + app/views/layouts/_head.html.haml | 5 +++++ app/views/layouts/application.html.haml | 10 +++------- 3 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 app/views/layouts/_footer.html.haml create mode 100644 app/views/layouts/_head.html.haml diff --git a/app/views/layouts/_footer.html.haml b/app/views/layouts/_footer.html.haml new file mode 100644 index 0000000..7ef9ada --- /dev/null +++ b/app/views/layouts/_footer.html.haml @@ -0,0 +1 @@ += javascript_include_tag 'body' diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml new file mode 100644 index 0000000..95cac05 --- /dev/null +++ b/app/views/layouts/_head.html.haml @@ -0,0 +1,5 @@ +%title RedTix += stylesheet_link_tag 'application' += render 'layouts/ie_shim' += javascript_include_tag 'head' += csrf_meta_tags diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index dfb6ddc..be4363a 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -1,16 +1,12 @@ !!! %html{ class: 'no-js' } %head - %title RedTix - = stylesheet_link_tag 'application' - = render 'layouts/ie_shim' - = javascript_include_tag 'head' - = csrf_meta_tags + = render 'layouts/head' %body - if flash.present? #flash - flash.each do |type, msg| %div{class: type}= msg - #container + .container = yield - = javascript_include_tag 'body' + = render 'layouts/footer'