-<% if bug.map_bug_comment[0].user == @user2 %>
- <tr>
-<% else %>
- <tr bgcolor=#EEEEEE>
-<% end %>
- <td>
- <% if bug.status == "closed" %>
- <%= image_tag("closed_bug_marker.png", :alt => 'closed') %>
- <% else %>
- <%= image_tag("open_bug_marker.png", :alt => 'open') %>
- <% end %>
- </td>
- <td><%= link_to bug.id.to_s, :controller => "browse", :action => "bug", :id => bug.id %></td>
-
- <% if bug.map_bug_comment[0].user.nil? %>
- <td> <%= bug.map_bug_comment[0].commenter_name %> </td>
- <% else %>
- <td><%= link_to h(bug.map_bug_comment[0].user.display_name), :controller => "user", :action => "view", :display_name => bug.map_bug_comment[0].user.display_name %></td>
- <% end %>
- <td> <%= htmlize bug.map_bug_comment[0].comment %> </td>
- <td><%= l bug.date_created %></td>
- <td><%= l bug.last_changed %></td>
- </tr>
+ <tr<% if bug.author != @user2 %> bgcolor="#EEEEEE"<% end %>>
+ <td>
+ <% if bug.status == "closed" %>
+ <%= image_tag("closed_bug_marker.png", :alt => 'closed') %>
+ <% else %>
+ <%= image_tag("open_bug_marker.png", :alt => 'open') %>
+ <% end %>
+ </td>
+ <td><%= link_to bug.id.to_s, :controller => "browse", :action => "bug", :id => bug.id %></td>
+ <% if bug.author.nil? %>
+ <td> <%= bug.author_name %> </td>
+ <% else %>
+ <td><%= link_to h(bug.author_name), :controller => "user", :action => "view", :display_name => bug.author_name %></td>
+ <% end %>
+ <td> <%= htmlize bug.comments.first.body %> </td>
+ <td><%= l bug.created_at %></td>
+ <td><%= l bug.updated_at %></td>
+ </tr>