From 48292be98b17821b21afc07055b68b285d0c4e64 Mon Sep 17 00:00:00 2001 From: summerscope Date: Fri, 20 Jun 2014 10:00:16 +1000 Subject: [PATCH] Home hubs view - fat node - adjust markup to make more dynamic, adjust for new designs --- app/views/home/_fat.html.haml | 54 +++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 24 deletions(-) diff --git a/app/views/home/_fat.html.haml b/app/views/home/_fat.html.haml index b70e195fa1..4196fb5811 100644 --- a/app/views/home/_fat.html.haml +++ b/app/views/home/_fat.html.haml @@ -1,28 +1,34 @@ .row.active_table_row{"ng-show" => "open()"} - .columns.small-4 - %h5 - %i.ofn-i_029-shopping-basket - Shop for - %p.trans-sentence - %span.fat-taxons{"ng-repeat" => "taxon in hub.taxons"} - %render-svg{path: "{{taxon.icon}}"} - {{taxon.name}} - .columns.small-4 - %h5 Delivery options - %ol - %li.pickup{"bo-if" => "hub.pickup"} - %i.ofn-i_038-takeaway - Pickup - %li.delivery{"bo-if" => "hub.delivery"} - %i.ofn-i_039-delivery - Delivery - .columns.small-4 - %h5 - %i.ofn-i_036-producers - Our producers - %ul.bullet-list - %li{"ng-repeat" => "producer in hub.producers"} - = render partial: "modals/producer" + .columns.small-12.large-4 +   + %div{"bo-if" => "hub.taxons"} + %h5 + %i.ofn-i_029-shopping-basket + Shop for + %p.trans-sentence + %span.fat-taxons{"ng-repeat" => "taxon in hub.taxons"} + %render-svg{path: "{{taxon.icon}}"} + {{taxon.name}} + .columns.small-12.large-4 +   + %div{"bo-if" => "hub.pickup || hub.delivery"} + %h5 Delivery options + %ol + %li.pickup{"bo-if" => "hub.pickup"} + %i.ofn-i_038-takeaway + Pickup + %li.delivery{"bo-if" => "hub.delivery"} + %i.ofn-i_039-delivery + Delivery + .columns.small-12.large-4 +   + %div{"bo-if" => "hub.producers"} + %h5 + %i.ofn-i_036-producers + Our producers + %ul.bullet-list + %li{"ng-repeat" => "producer in hub.producers"} + = render partial: "modals/producer" .row.active_table_row.link{"ng-show" => "open()", "bo-if" => "hub.active"} .cta-container.columns.small-12