mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Printing out the taxons baby
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Darkswarm.filter "printArray", ->
|
||||
(array, attr = 'name')->
|
||||
array ?= []
|
||||
array.map (a)->
|
||||
a[attr]
|
||||
.join(", ")
|
||||
@@ -2,8 +2,7 @@
|
||||
.columns.small-4
|
||||
%strong Shop for
|
||||
%p
|
||||
Organics, Test data, Food boxes, fruit,
|
||||
kittens, Meat & Fish, Drinks
|
||||
{{ hub.taxons | printArray }}
|
||||
.columns.small-4
|
||||
%strong Delivery options
|
||||
%ol
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
collection Enterprise.is_distributor
|
||||
attributes :name, :id
|
||||
|
||||
child :taxons do
|
||||
attributes :name, :id
|
||||
end
|
||||
|
||||
child :address do
|
||||
attributes :city, :zipcode
|
||||
node :state do |address|
|
||||
|
||||
Reference in New Issue
Block a user