X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c04e9ccf954737f9a3bb475100e2234e7ac5c17d..df3db35c96b55af95389271da6a5bba23224ad99:/app/views/message/_message_summary.rhtml
diff --git a/app/views/message/_message_summary.rhtml b/app/views/message/_message_summary.rhtml
index 81e21454f..02972728e 100644
--- a/app/views/message/_message_summary.rhtml
+++ b/app/views/message/_message_summary.rhtml
@@ -1,13 +1,9 @@
+<% 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 %> |
-
- <% if message_summary.title.nil? or message_summary.title == '' %>
- <%= link_to '(no subject)' , :controller => 'message', :action => 'read', :message_id => message_summary.id %>
- <% else %>
- <%= link_to message_summary.title , :controller => 'message', :action => 'read', :message_id => message_summary.id %>
- <% end %>
- |
- <%= 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? %>
<%= button_to 'Mark as unread', :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread' %> |
<% else %>