2012-10-08 16:20:24 +02:00
|
|
|
- if Ordergroup.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @ordergroups
|
2009-04-11 19:39:01 +02:00
|
|
|
|
2012-10-08 16:20:24 +02:00
|
|
|
%table.table.table-striped
|
2009-04-11 19:39:01 +02:00
|
|
|
%thead
|
|
|
|
%tr
|
2022-05-27 17:06:25 +02:00
|
|
|
%th= sort_link_helper heading_helper(Ordergroup, :name), "name"
|
2013-12-12 00:13:19 +01:00
|
|
|
%th= heading_helper Ordergroup, :user_tokens
|
2016-03-04 17:07:24 +01:00
|
|
|
%th= heading_helper Ordergroup, :break
|
2022-05-27 17:06:25 +02:00
|
|
|
%th= sort_link_helper heading_helper(Ordergroup, :last_user_activity), "last_user_activity"
|
|
|
|
%th= sort_link_helper heading_helper(Ordergroup, :last_order), "last_order"
|
2009-04-11 19:39:01 +02:00
|
|
|
|
|
|
|
%tbody
|
2009-05-04 17:06:08 +02:00
|
|
|
- for ordergroup in @ordergroups
|
2012-10-08 16:20:24 +02:00
|
|
|
%tr
|
|
|
|
%td= ordergroup.name
|
2013-09-20 22:40:13 +02:00
|
|
|
%td=h ordergroup.users.collect { |u| show_user(u) }.join(", ")
|
2016-03-04 17:07:24 +01:00
|
|
|
- if ordergroup.break_start? or ordergroup.break_end?
|
|
|
|
%td= raw t '.break', start: format_date(ordergroup.break_start), end: format_date(ordergroup.break_end)
|
|
|
|
- else
|
|
|
|
%td
|
2016-02-18 00:00:55 +01:00
|
|
|
%td= format_date ordergroup.last_user_activity
|
2013-12-14 13:15:47 +01:00
|
|
|
%td= format_date ordergroup.last_order.try(:starts)
|