X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b61e4f77e86fd2535a88b0d3e5aec97809c8ec5e..11bd2a4ddcaf3956f4cdea97d2c4b9c4c78ff318:/app/views/message/_message_summary.rhtml
diff --git a/app/views/message/_message_summary.rhtml b/app/views/message/_message_summary.rhtml
index f572c8990..56f6bb132 100644
--- a/app/views/message/_message_summary.rhtml
+++ b/app/views/message/_message_summary.rhtml
@@ -1,11 +1,11 @@
-
- <%= 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 message_summary.title , :controller => 'message', :action => 'read', :message_id => message_summary.id %> |
+ <%= message_summary.sent_on %> |
<% if message_summary.message_read? %>
- 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 %> |
+ <%= 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 => 'new', :user_id => message_summary.from_user_id %> |