X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9da455a32299d898acdb54e0e41409cd5d546d89..2e2956d126908f74568878d6456412a48d259c58:/app/views/message/_message_summary.rhtml?ds=sidebyside diff --git a/app/views/message/_message_summary.rhtml b/app/views/message/_message_summary.rhtml index 56f6bb132..381a6cce1 100644 --- a/app/views/message/_message_summary.rhtml +++ b/app/views/message/_message_summary.rhtml @@ -1,11 +1,13 @@ +<% this_colour = cycle('lightgrey', 'white') # can only call once for some dumb reason %> + "> - <%= link_to message_summary.sender.display_name , :controller => 'user', :action => message_summary.sender.display_name %> - <%= link_to message_summary.title , :controller => 'message', :action => 'read', :message_id => message_summary.id %> - <%= message_summary.sent_on %> + <%= link_to 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 => 'new', :user_id => message_summary.from_user_id %> + <%= button_to 'Reply', :controller => 'message', :action => 'reply', :message_id => message_summary.id %>