]> git.openstreetmap.org Git - rails.git/commitdiff
Prevent message date/time from wrapping.
authorTom Hughes <tom@compton.nu>
Thu, 23 Jul 2009 15:07:26 +0000 (15:07 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 23 Jul 2009 15:07:26 +0000 (15:07 +0000)
app/views/message/_message_summary.html.erb
app/views/message/_sent_message_summary.html.erb

index 129204d2d845c111e93c8f190cc27bdd451660c3..49190fd936e16326f57cd2757a8069ad85169411 100644 (file)
@@ -1,10 +1,9 @@
-<% this_colour = cycle('lightgrey', 'white') # can only call once for some dumb reason 
-%>
+<% this_colour = cycle('lightgrey', 'white') %>
 
 <tr class="inbox-row<%= "-unread" if not message_summary.message_read? %>">
   <td class="inbox-sender" bgcolor="<%= this_colour %>"><%= link_to h(message_summary.sender.display_name), :controller => 'user', :action => message_summary.sender.display_name %></td>
   <td class="inbox-subject" bgcolor="<%= this_colour %>"><%= link_to h(message_summary.title), :controller => 'message', :action => 'read', :message_id => message_summary.id  %></td>
-  <td class="inbox-sent" bgcolor="<%= this_colour %>"><%= l message_summary.sent_on %></td>
+  <td class="inbox-sent nowrap" bgcolor="<%= this_colour %>"><%= l message_summary.sent_on %></td>
   <% if message_summary.message_read? %>
     <td><%= button_to t('message.message_summary.unread_button'), :controller => 'message', :action => 'mark', :message_id => message_summary.id, :mark => 'unread' %></td>
   <% else %>
index a03074e0838fa9f93793cef8ac8606cf4a9dccd9..be1048a024c6fc3b20692952ded7ff8f8b0dbf99 100644 (file)
@@ -1,8 +1,7 @@
-<% this_colour = cycle('lightgrey', 'white') # can only call once for some dumb reason
-%>
+<% this_colour = cycle('lightgrey', 'white') %>
 
 <tr class="inbox-row">
   <td class="inbox-sender" bgcolor="<%= this_colour %>"><%= link_to h(sent_message_summary.recipient.display_name), :controller => 'user', :action => sent_message_summary.recipient.display_name %></td>
   <td class="inbox-subject" bgcolor="<%= this_colour %>"><%= link_to h(sent_message_summary.title), :controller => 'message', :action => 'read', :message_id => sent_message_summary.id  %></td>
-  <td class="inbox-sent" bgcolor="<%= this_colour %>"><%= l sent_message_summary.sent_on %></td>
+  <td class="inbox-sent nowrap" bgcolor="<%= this_colour %>"><%= l sent_message_summary.sent_on %></td>
 </tr>