1
0

Display readout list in tree format

This commit is contained in:
cryptogopher
2021-05-12 21:34:00 +02:00
parent bb43370329
commit 96d1c40cb8
9 changed files with 51 additions and 60 deletions

View File

@@ -37,7 +37,7 @@
<td class="right ellipsible" style="border-left: none;"></td>
<% @quantities.each do |q| %>
<td class="right ellipsible">
<%= format_value(@ingredient_summary[m][q], @ingredient_summary[:precision][q]) %>
<%= format_amount(@ingredient_summary[m][q], @ingredient_summary[:precision][q]) %>
</td>
<% end %>

View File

@@ -7,7 +7,7 @@
<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]) %>
<%= format_amount(@ingredient_summary[date][q], @ingredient_summary[:precision][q]) %>
</td>
<% end %>
<td></td>

View File

@@ -6,8 +6,8 @@
</td>
<% @quantities.each do |q| %>
<td class="right ellipsible">
<%= format_value(@ingredients[i][q], @ingredient_summary[:precision][q],
@ingredient_summary[:mfu_unit][q]) %>
<%= format_amount(@ingredients[i][q], @ingredient_summary[:precision][q],
@ingredient_summary[:mfu_unit][q]) %>
</td>
<% end %>
<%# Moved buttons to helper to avoid spaces between buttons %>