From e444ff8d2c405a9b3fa6a0793aea825cafbfce9f Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 27 Mar 2014 12:12:53 +1100 Subject: [PATCH] Patching order cycle selector --- .../darkswarm/controllers/order_cycle_controller.js.coffee | 1 + app/views/shop/shop/show.html.haml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/darkswarm/controllers/order_cycle_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/order_cycle_controller.js.coffee index 0f7f3cd17f..fc6413705a 100644 --- a/app/assets/javascripts/darkswarm/controllers/order_cycle_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/order_cycle_controller.js.coffee @@ -1,4 +1,5 @@ Darkswarm.controller "OrderCycleCtrl", ($scope, $rootScope, OrderCycle) -> $scope.order_cycle = OrderCycle.order_cycle + $scope.OrderCycle = OrderCycle $scope.changeOrderCycle = -> OrderCycle.push_order_cycle() diff --git a/app/views/shop/shop/show.html.haml b/app/views/shop/shop/show.html.haml index bb969b319b..df054840da 100644 --- a/app/views/shop/shop/show.html.haml +++ b/app/views/shop/shop/show.html.haml @@ -8,7 +8,7 @@ %closing -#%img{src: "/icon/goes/here"} Orders close - %strong {{ order_cycle.orders_close_at() | date_in_words }} + %strong {{ OrderCycle.orders_close_at() | date_in_words }} = render partial: "shop/details" %products.row