<%= "#{t '.label_meal'} ##{index+1}" %> <% if m.eaten_at %> <%= " - #{m.eaten_at.time}" %> <%= link_to '', toggle_eaten_meal_path(m), {remote: true, method: :post, class: "icon icon-close"} %> <% else %> <%= link_to l(:button_eat), toggle_eaten_meal_path(m), {remote: true, method: :post, class: "icon icon-ok"} %> <% end %> <%= link_to l(:button_note), note_meal_path(m), {remote: true, class: "icon icon-wiki-page"} %>
<%= meal_links(m) %>
<% m.ingredients.each do |i| %> <%= i.food.name %> <%= adjust_ingredient_links(i) { raw " #{i.amount} " } %> <% end %>