1
0

Cleaned up nutrients index table

This commit is contained in:
cryptogopher
2020-06-02 23:12:50 +02:00
parent ba634eb516
commit 356e264c51
3 changed files with 25 additions and 7 deletions

View File

@@ -39,8 +39,9 @@
<tr class="header">
<td class="quantityhead"><%= "[#{@amount_mfu_unit.shortname}]" %></td>
<% @quantities.each do |q| %>
<% mfu_unit = @ingredient_summary[:mfu_unit][q] %>
<td class="quantityhead"><%= "[#{mfu_unit ? mfu_unit.shortname : '-'}]" %></td>
<td class="quantityhead">
<%= "[#{@ingredient_summary[:mfu_unit][q].try(&:shortname) || '-'}]" %>
</td>
<% end %>
</tr>