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