small link_to_ordering refactoring
This commit is contained in:
parent
de9453fa24
commit
810656a53b
2 changed files with 12 additions and 14 deletions
|
|
@ -20,7 +20,9 @@
|
|||
- if group_order = order.group_order(ordergroup)
|
||||
- total += group_order.price
|
||||
%td= "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
||||
%td.numeric= link_to_ordering_price(order)
|
||||
%td.numeric
|
||||
= link_to_ordering(order, show: true) do
|
||||
- number_to_currency(group_order.price)
|
||||
- else
|
||||
%td{:colspan => 2}
|
||||
- if total > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue