From 6d7fd6dc941a710da862dea47fa806424a0140ef Mon Sep 17 00:00:00 2001 From: summerscope Date: Fri, 12 Sep 2014 10:48:33 +1000 Subject: [PATCH] Add in logic to change right hand label if this is the current hub --- app/views/home/_skinny.html.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/home/_skinny.html.haml b/app/views/home/_skinny.html.haml index 3c5654437c..da9709479b 100644 --- a/app/views/home/_skinny.html.haml +++ b/app/views/home/_skinny.html.haml @@ -15,12 +15,16 @@ .columns.small-6.medium-3.large-4.text-right{"bo-if" => "hub.active"} %a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"} %i.ofn-i_033-open-sign - %span.margin-top {{ hub.orders_close_at | sensible_timeframe }} + %span.margin-top{ bo: { if: "current()" } } + %em Shopping here + %span.margin-top{ bo: { if: "!current()" } } {{ hub.orders_close_at | sensible_timeframe }} .columns.small-6.medium-3.large-4.text-right{"bo-if" => "!hub.active"} %a.hub.open_closed{"bo-href" => "hub.path", "ng-class" => "{primary: hub.active, secondary: !hub.active}", "ofn-empties-cart" => "hub"} %i.ofn-i_032-closed-sign - %span.margin-top Orders closed + %span.margin-top{ bo: { if: "current()" } } + %em Shopping here + %span.margin-top{ bo: { if: "!current()" } } Orders closed