Remove unused edit variable in articles_by-views

The edit version is already handled in group_order_article_edit_result().
This commit is contained in:
Patrick Gansterer 2020-03-23 12:16:34 +01:00
parent 17059a8104
commit f8a4341c76
6 changed files with 6 additions and 7 deletions

View file

@ -1,5 +1,5 @@
%tr{class: if goa.result == 0 then 'unavailable' end, id: "goa_#{goa.id}"}
%td{:style => "width:70%"}= goa.group_order.ordergroup_name
%td.center= "#{goa.quantity} + #{goa.tolerance}"
%td.center.input-delta= (edit or true rescue true) ? group_order_article_edit_result(goa) : goa.result
%td.center.input-delta= group_order_article_edit_result(goa)
%td.price{data: {value: goa.total_price}}= number_to_currency(goa.total_price)