5eb8abf431
Reduces the number of SQL queries used on group_orders/index and group_orders/archive, but adds extra complexity to the code
13 lines
452 B
Text
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}
|