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-02-22 00:19:22 +01:00
|
|
|
%th= t '.name'
|
|
|
|
%th= t '.user'
|
|
|
|
%th= t '.last_ordered'
|
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
|
2009-05-04 17:06:08 +02:00
|
|
|
%td=h ordergroup.users.collect { |u| u.nick }.join(", ")
|
2012-10-08 16:20:24 +02:00
|
|
|
%td= format_date ordergroup.orders.order('orders.starts DESC').first.try(:starts)
|
|
|
|
%td= link_to_new_message(message_params: {group_id: ordergroup.id})
|
2009-04-11 19:39:01 +02:00
|
|
|
|