1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/views/meals/_show_date.html.erb
cryptogopher e301665b6a Add Targets #show
Change css classes from subject-oriented to property-oriented
2021-05-05 12:42:30 +02:00

15 lines
531 B
Plaintext

<tr id="date-<%= date.strftime('%Y%m%d') %>" class="date" style="background-color: #fff2cc;">
<td class="topleft" colspan="2" style="border-right: none;">
<h3 style="margin: 0;">
<%= date == Date.current ? 'Today' : date.strftime('%F') %>
</h3>
</td>
<td class="right ellipsible" style="border-left: none;"></td>
<% @quantities.each do |q| %>
<td class="right ellipsible">
<%= format_value(@ingredient_summary[date][q], @ingredient_summary[:precision][q]) %>
</td>
<% end %>
<td></td>
</tr>