-<% 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.comments[0].user != @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.comments[0].user.nil? %>
+ <td> <%= bug.comments[0].commenter_name %> </td>
+ <% else %>
+ <td><%= link_to h(bug.comments[0].user.display_name), :controller => "user", :action => "view", :display_name => bug.comments[0].user.display_name %></td>
+ <% end %>
+ <td> <%= htmlize bug.comments[0].comment %> </td>
+ <td><%= l bug.date_created %></td>
+ <td><%= l bug.last_changed %></td>
+ </tr>