<% if @meals_by_date.any? %> <%= render partial: 'meals/options' %> <% formulas = @quantities.map { |q| q.formula } %> <% formulas.unshift(@filter_q.formula) if @filter_q %> <%= error_messages_for *formulas %> <% total_width = 4 + @quantities.length %> <% @meals_by_date.reverse_each do |date, meals| %> <% @quantities.each do |q| %> <% end %> <% @quantities.each do |q| %> <% mfu_unit = @ingredient_summary[:mfu_unit][q] %> <% end %> <%= render partial: 'meals/show_date', locals: {date: date} %> <% meals.each_with_index do |m, index| %> <%= render partial: 'meals/show', locals: {m: m, index: index} %> <% m.ingredients.each do |i| %> <%= render partial: 'meals/show_ingredient', locals: {i: i} %> <% end %> <% end %> <% end %>
<%= l(:field_amount) %> <%= q.name %>
<%= "[#{@amount_mfu_unit.shortname}]" %><%= "[#{mfu_unit ? mfu_unit.shortname : '-'}]" %>
<% else %>

<%= l(:label_no_data) %>

<% end %>