diff options
author | jessib <jessib@riseup.net> | 2013-08-01 10:52:04 -0700 |
---|---|---|
committer | jessib <jessib@riseup.net> | 2013-08-01 10:52:04 -0700 |
commit | 368dbc55966b2b74699065e07de28fe321f286b6 (patch) | |
tree | 7c03bf78596e9e2a7735518ba713eaacd864a975 /app/views/layouts | |
parent | 3578c13abd86d15ca6310bf5652f4855a8daa1a8 (diff) | |
parent | 1a3fdad01d9cb2e2596281d38ce0c0f1ad4da04a (diff) |
Merge branch 'master' into billing_with_tests
Conflicts:
app/views/home/index.html.haml
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/_content.html.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/application.html.haml | 3 | ||||
-rw-r--r-- | app/views/layouts/home.html.haml | 12 |
3 files changed, 14 insertions, 3 deletions
diff --git a/app/views/layouts/_content.html.haml b/app/views/layouts/_content.html.haml index 19af627..d5c2fa3 100644 --- a/app/views/layouts/_content.html.haml +++ b/app/views/layouts/_content.html.haml @@ -1,5 +1,5 @@ -# --# Partial for displaying the page content. This is the only place that content should be displayed. +-# Partial for displaying the page content. This is the only place that content should be displayed (except for home layout) -# - if content_for?(:content) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 380f92d..816b558 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -11,8 +11,7 @@ = yield(:head) %body #masthead - - if params[:controller] != 'home' - = render 'layouts/masthead' + = render 'layouts/masthead' #main .container-fluid - if logged_in? diff --git a/app/views/layouts/home.html.haml b/app/views/layouts/home.html.haml new file mode 100644 index 0000000..e6fa15d --- /dev/null +++ b/app/views/layouts/home.html.haml @@ -0,0 +1,12 @@ +!!! +%html + %head + %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"} + %title= html_title + %meta{:content => content_for?(:description) ? yield(:description) : "LEAP Web", :name => "description"} + = stylesheet_link_tag "application", :media => "all" + = javascript_include_tag "application" + = csrf_meta_tags + = yield(:head) + %body + = yield
\ No newline at end of file |