-products.each do |p| %tr %td{:class=>'product'} .status_icon{:class => "#{@distributor.product_compliance_color p['productId']}"} #{p['productName']}