Refactored messages modul, but refactoring is still neccessary.

This commit is contained in:
benni 2011-05-18 14:47:17 +02:00
parent 6ac04d5e19
commit d5552059ce
13 changed files with 81 additions and 146 deletions

View file

@ -17,7 +17,7 @@
%tbody
- for ordergroup in @ordergroups
%tr{:class => cycle('even','odd', :name => 'ordergroup')}
%td= link_to h(ordergroup.name), group_message_path(ordergroup), :title => "Bestellgruppe eine Nachricht schicken"
%td= link_to h(ordergroup.name), new_message_path(:message => {:group_id => ordergroup.id}), :title => "Bestellgruppe eine Nachricht schicken"
%td=h ordergroup.users.collect { |u| u.nick }.join(", ")
%td
- order = ordergroup.orders.first(:order => 'starts DESC')