From 91abf4fab1b087231e366dc7256459ddd9b83332 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 6 Nov 2013 11:16:29 +1100 Subject: [PATCH] Reworking the temp homepage to use the Foundation styles more cleverly --- app/views/home/temp_landing_page.html.haml | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/app/views/home/temp_landing_page.html.haml b/app/views/home/temp_landing_page.html.haml index ef3cc282fc..783541b9b3 100644 --- a/app/views/home/temp_landing_page.html.haml +++ b/app/views/home/temp_landing_page.html.haml @@ -29,20 +29,19 @@ .large-12.columns.centered %h3 WHERE WOULD YOU LIKE TO SHOP? %p.secondary Select your hub from the list below - .row.landing-page-row.with-bottom-border - - @groups.in_groups_of(4, false) do |row| - %div.clearfix - - row.each do |group| - .large-3.columns - .group-header - %h5= group.name.upcase - - group.enterprises.is_distributor.by_name.each do |distributor| - .row.distributor-link-row - .large-12.columns - = succeed ',' do - = link_to "#{distributor.name}".html_safe, shop_enterprise_path(distributor), {class: temp_landing_page_distributor_link_class(distributor)} + - @groups.in_groups_of(4, false) do |row| + .row.landing-page-row{:class => row == @groups.last ? "with-bottom-border" : ""} + - row.each do |group| + .large-3.columns + .group-header + %h5= group.name.upcase + - group.enterprises.is_distributor.by_name.each do |distributor| + .row.distributor-link-row + .large-12.columns + = succeed ',' do + = link_to "#{distributor.name}".html_safe, shop_enterprise_path(distributor), {class: temp_landing_page_distributor_link_class(distributor)} - %span.secondary= distributor.city + %span.secondary= distributor.city %footer .row.landing-page-row .large-6.columns.text-left