foodsoft/app/views/foodcoop/ordergroups/_ordergroups.html.haml

20 lines
601 B
Text
Raw Normal View History

- if Ordergroup.count > 20
= items_per_page
= pagination_links_remote @ordergroups
%table.table.table-striped
%thead
%tr
2013-12-12 00:13:19 +01:00
%th= heading_helper Ordergroup, :name
%th= heading_helper Ordergroup, :user_tokens
%th= heading_helper Ordergroup, :last_ordered
%tbody
- for ordergroup in @ordergroups
%tr
%td= ordergroup.name
2013-09-20 22:40:13 +02:00
%td=h ordergroup.users.collect { |u| show_user(u) }.join(", ")
%td= format_date ordergroup.orders.order('orders.starts DESC').first.try(:starts)
%td= link_to_new_message(message_params: {group_id: ordergroup.id})