diff --git a/app/views/meals/_show.html.erb b/app/views/meals/_show.html.erb index 4dac486..cecdcf9 100644 --- a/app/views/meals/_show.html.erb +++ b/app/views/meals/_show.html.erb @@ -1,6 +1,6 @@ - + <%= "#{t '.label_meal'} ##{index+1}" %> <% if m.eaten_at %> <%= " at #{m.eaten_at.strftime('%R')}" %> @@ -13,7 +13,7 @@ + style="text-align: left; border-left: none; border-right: none; width: 1%;"> <%= link_to l(:button_cancel), '', class: 'icon icon-cancel', style: 'display: none;', onclick: "$(event.target).closest('tr').find('form').remove(); $('td[id=notes-#{m.id}]').contents().show(); @@ -34,7 +34,7 @@ <% end %> - + <% @quantities.each do |q| %> <%= format_value(@nutrient_summary[q][m], @nutrients[q][:precision]) %> diff --git a/app/views/meals/_show_date.html.erb b/app/views/meals/_show_date.html.erb index 3ef31eb..0be1568 100644 --- a/app/views/meals/_show_date.html.erb +++ b/app/views/meals/_show_date.html.erb @@ -1,10 +1,10 @@ - +

<%= date == Date.current ? 'Today' : date.strftime('%F') %>

- + <% @quantities.each do |q| %> <%= format_value(@nutrient_summary[q][date], @nutrients[q][:precision]) %>