- unless @results.empty? - if Order.finished.count > 20 = items_per_page %table.table.table-striped %thead %tr %th=I18n.t('activerecord.attributes.group_order_invoice.links.combine') %th= t('.name') %th= t('.end') %th= t('.state') %th= heading_helper Order, :updated_by %th= heading_helper GroupOrderInvoice, :name %th %th %tbody - @results.each do |result| - if result.class == Order = render partial: 'order_row', locals: { order: result } - else = render partial: 'multi_order_row', locals: { multi_order: result } = button_tag 'Zusammenführen', class: 'btn btn-primary merge-orders-btn', type: 'button', data: { url: multi_orders_path } - else %i= t('.no_closed_orders')