Sorting hubs by active

This commit is contained in:
Will Marshall
2014-07-10 12:59:59 +10:00
parent 6681beae4d
commit 932ca95ec5

View File

@@ -26,7 +26,7 @@
%h5 Shop for {{ producer.name }} products at:
.row
.columns.small-12
%a.button.hub{"ng-repeat" => "hub in producer.hubs",
%a.button.hub{"ng-repeat" => "hub in producer.hubs | orderBy:'-active'",
"bo-href" => "hub.path", "ofn-empties-cart" => "hub",
"bo-class" => "{primary: hub.active, secondary: !hub.active}"}
%i.ofn-i_033-open-sign{"bo-if" => "hub.active"}