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
|
2013-12-12 00:13:19 +01:00
|
|
|
%th= heading_helper Ordergroup, :name
|
|
|
|
%th= heading_helper Ordergroup, :user_tokens
|
2013-12-14 13:15:47 +01:00
|
|
|
%th= heading_helper Ordergroup, :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(", ")
|
2013-12-14 13:15:47 +01:00
|
|
|
%td= format_date ordergroup.last_order.try(:starts)
|
2012-10-08 16:20:24 +02:00
|
|
|
%td= link_to_new_message(message_params: {group_id: ordergroup.id})
|
2009-04-11 19:39:01 +02:00
|
|
|
|