Files
openfoodnetwork/app/views/home/_hubs.html.haml
Rohan Mitchell 1cd9ee399f Cloak shops page
2015-06-18 10:19:18 +10:00

24 lines
1.0 KiB
Plaintext

= inject_enterprises
#hubs.hubs{"ng-controller" => "EnterprisesCtrl", "ng-cloak" => true}
.row
.small-12.columns
%h1 Shop in your local area
= render partial: "shared/components/enterprise_search"
= render partial: "home/filters"
.row{bindonce: true}
.small-12.columns
.active_table
%hub.active_table_node.row.animate-repeat{"ng-repeat" => "hub in filteredEnterprises = (Enterprises.hubs | visible | searchEnterprises:query | taxons:activeTaxons | shipping:shippingTypes | showHubProfiles:show_profiles | orderBy:['-active', '+orders_close_at'])",
"ng-class" => "{'is_profile' : hub.category == 'hub_profile', 'closed' : !open(), 'open' : open(), 'inactive' : !hub.active, 'current' : current()}",
"scroll-after-load" => true,
"ng-controller" => "HubNodeCtrl",
id: "{{hub.hash}}"}
.small-12.columns
= render partial: 'home/skinny'
= render partial: 'home/fat'
= render partial: 'shared/components/enterprise_no_results'