From 36451423bac0ddeb6a8b79dbceec145910054290 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 19 Jun 2014 12:56:55 +1000 Subject: [PATCH] Producer fat view --- app/views/producers/_fat.html.haml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/views/producers/_fat.html.haml b/app/views/producers/_fat.html.haml index 128795a9ba..deb68d264e 100644 --- a/app/views/producers/_fat.html.haml +++ b/app/views/producers/_fat.html.haml @@ -8,10 +8,17 @@ %p {{ producer.description }} -.row.active_table_row.link{"ng-show" => "open()", "ng-repeat" => "hub in producer.distributors"} +.row.active_table_row.link{"ng-show" => "open()"} .columns.small-11 - %a{"bo-href" => "hub.path", "ofn-empties-cart" => "hub", - change: "Change hub to", shop: "Shop at"} + Shop for {{ producer.name }} products at: + + %a{"ng-repeat" => "hub in producer.hubs", + "bo-href" => "hub.path", "ofn-empties-cart" => "hub", + "bo-class" => "{primary: hub.active, grey: !hub.active}"} + %i.ofn-i_033-open-sign{"bo-if" => "hub.active"} + %i.ofn-i_032-closed-sign{"bo-if" => "!hub.active"} + {{hub.name}} + ( {{ hub.address.city }} , {{hub.address.state}} ) .columns.small-1.text-right %a{"bo-href" => "hub.path"}