2009-04-11 19:39:01 +02:00
|
|
|
%p
|
|
|
|
%table{:style => "width:100%"}
|
|
|
|
%tr
|
|
|
|
%td
|
2009-05-04 17:06:08 +02:00
|
|
|
= pagination_links_remote @ordergroups, :update => :ordergroups
|
2009-04-11 19:39:01 +02:00
|
|
|
%td{:style => "text-align:right"}
|
|
|
|
- if @total > 20
|
2009-05-04 17:06:08 +02:00
|
|
|
= items_per_page :update => :ordergroups
|
2009-04-11 19:39:01 +02:00
|
|
|
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
2009-05-04 17:06:08 +02:00
|
|
|
%th Mitglieder
|
|
|
|
%th zuletzt bestellt
|
2009-04-11 19:39:01 +02:00
|
|
|
|
|
|
|
%tbody
|
2009-05-04 17:06:08 +02:00
|
|
|
- for ordergroup in @ordergroups
|
|
|
|
%tr{:class => cycle('even','odd', :name => 'ordergroup')}
|
2011-05-18 14:47:17 +02:00
|
|
|
%td= link_to h(ordergroup.name), new_message_path(:message => {:group_id => ordergroup.id}), :title => "Bestellgruppe eine Nachricht schicken"
|
2009-05-04 17:06:08 +02:00
|
|
|
%td=h ordergroup.users.collect { |u| u.nick }.join(", ")
|
|
|
|
%td
|
|
|
|
- order = ordergroup.orders.first(:order => 'starts DESC')
|
|
|
|
= order ? format_date(order.starts) : "-"
|
2009-04-11 19:39:01 +02:00
|
|
|
|