Fixing missing taxons

This commit is contained in:
Will Marshall
2014-06-20 16:50:31 +10:00
parent 21589fd5b0
commit 1eaf2c3bc5
2 changed files with 6 additions and 5 deletions

View File

@@ -1,9 +1,10 @@
child supplied_taxons: :taxons do
extends 'json/taxon'
end
child distributors: :hubs do
attributes :id
end
node :path do |producer|
main_app.producer_path(producer)
end
child supplied_taxons: :supplied_taxons do
extends 'json/taxon'
end

View File

@@ -1,12 +1,12 @@
.row.active_table_row{"ng-show" => "open()"}
.columns.small-12.large-4
 
%div{"bo-if" => "producer.taxons"}
%div{"ng-if" => "producer.supplied_taxons"}
%h5
%i.ofn-i_029-shopping-basket
Shop for
%p.trans-sentence
%span.fat-taxons{"ng-repeat" => "taxon in producer.taxons"}
%span.fat-taxons{"ng-repeat" => "taxon in producer.supplied_taxons"}
%render-svg{path: "{{taxon.icon}}"}
{{taxon.name}}
.columns.small-12.large-3