foodsoft/app/views/group_orders/archive.html.haml
Florian Lentsch 5eb8abf431 Potential fix for one of the issues mentioned in #49
Reduces the number of SQL queries used on group_orders/index and
group_orders/archive, but adds extra  complexity to the code
2020-07-29 13:15:11 +02:00

13 lines
452 B
Text

- title t('.title', group: @ordergroup.name)
%p
= t('.desc', link: link_to(t('.open_orders'), group_orders_path)).html_safe
.row-fluid
.span6
%h2= t '.title_open'
= render partial: 'orders', locals: {orders: @finished_not_closed_orders_including_group_order, pagination: false}
.span6
%h2= t '.title_closed'
#closed_orders
= render partial: 'orders', locals: {orders: @closed_orders_including_group_order, pagination: true}