From b7104add1c3dfa9b8746fca830105d0a8be1bc08 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Fri, 8 Nov 2013 16:37:02 +1100 Subject: [PATCH] Patching up the footer, partialising it --- .../shared/_footer/footer.html.haml.deface | 26 +++++++++---------- app/views/home/temp_landing_page.html.haml | 14 +++++----- app/views/shared/_footer.html.haml | 6 +++++ 3 files changed, 27 insertions(+), 19 deletions(-) create mode 100644 app/views/shared/_footer.html.haml diff --git a/app/overrides/spree/shared/_footer/footer.html.haml.deface b/app/overrides/spree/shared/_footer/footer.html.haml.deface index b11737d4d7..c7c969f74c 100644 --- a/app/overrides/spree/shared/_footer/footer.html.haml.deface +++ b/app/overrides/spree/shared/_footer/footer.html.haml.deface @@ -1,19 +1,19 @@ -/ - replace "footer" +/ replace "footer" +-#= render partial: "shared/footer" %footer %hr/ - .row - .seven.columns.offset-by-three - %center - %h1 What is open food network? - %p - %i - Open food network is an online space in which people can connect with, trade and sell food directly with - Australian farmers. We aim to reconnect people with their food. - %hr/ + -#.row + -#.seven.columns.offset-by-three + -#%center + -#%h1 What is open food network? + -#%p + -#%i + -#Open food network is an online space in which people can connect with, trade and sell food directly with + -#Australian farmers. We aim to reconnect people with their food. + -#%hr/ - .row - .five.columns.secondary.offset-by-seven.secondary + -#.row + -#.five.columns.secondary.offset-by-seven.secondary -#All rights reserved. © 2013 Open Food Foundation diff --git a/app/views/home/temp_landing_page.html.haml b/app/views/home/temp_landing_page.html.haml index 1ee62f8f0f..f670481798 100644 --- a/app/views/home/temp_landing_page.html.haml +++ b/app/views/home/temp_landing_page.html.haml @@ -40,11 +40,13 @@ .row.distributor-link-row .large-12.columns = render partial: "shared/distributor", object: distributor - %footer - .row.landing-page-row - .large-6.columns.text-left - %strong - %span.has-tip.tip-top{"data-tooltip" => "", "data-options" => "disable-for-touch:true", title: "Open Food Network is a marketplace connecting you to local producers and food hubs"} - = link_to "WHAT IS OPEN FOOD NETWORK?", "http://openfoodnetwork.org" + + = render partial: "shared/footer" + -#%footer + -#.row.landing-page-row + -#.large-6.columns.text-left + -#%strong + -#%span.has-tip.tip-top{"data-tooltip" => "", "data-options" => "disable-for-touch:true", title: "Open Food Network is a marketplace connecting you to local producers and food hubs"} + -#= link_to "WHAT IS OPEN FOOD NETWORK?", "http://openfoodnetwork.org" -#.large-6.columns.text-right.secondary All rights reserved. © 2013 Open Food Foundation diff --git a/app/views/shared/_footer.html.haml b/app/views/shared/_footer.html.haml new file mode 100644 index 0000000000..4b2ae59124 --- /dev/null +++ b/app/views/shared/_footer.html.haml @@ -0,0 +1,6 @@ +%footer + .row.landing-page-row + .large-6.columns.text-left + %strong + %span.has-tip.tip-top{"data-tooltip" => "", "data-options" => "disable-for-touch:true", title: "Open Food Network is a marketplace connecting you to local producers and food hubs"} + = link_to "WHAT IS OPEN FOOD NETWORK?", "http://openfoodnetwork.org"