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