<%= i.food.name %> |
<%= "%g" % i.amount %>
<%= "[#{i.food.ref_unit.shortname}]" unless i.food.ref_unit == @amount_mfu_unit %>
|
<% @quantities.each do |q| %>
<%= format_value(*@nutrients[q].values_at(i, :precision, :mfu_unit)) %>
|
<% end %>
<%# Moved to helper to avoid spaces between buttons %>
<%= adjustment_buttons(i) %>
|