% this_colour = cycle('lightgrey', 'white') # can only call once for some dumb reason
%>
">
<%= link_to h(message_summary.sender.display_name), :controller => 'user', :action => message_summary.sender.display_name %> |
<%= link_to h(message_summary.title), :controller => 'message', :action => 'read', :message_id => message_summary.id %> |
<%= message_summary.sent_on %> |
<% if message_summary.message_read? %>
<%= button_to 'Mark as unread', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread' %> |
<% else %>
<%= button_to 'Mark as read', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'read' %> |
<% end %>
<%= button_to 'Reply', :controller => 'message', :action => 'reply', :message_id => message_summary.id %> |