<%= render :partial => "map", :object => @bug %>

<% if @bug.status == "closed" %> <%= image_tag("closed_bug_marker.png", :alt => 'closed') %> <%= t'browse.bug.closed_title', :bug_name => @bug.id %> <% else %> <%= image_tag("open_bug_marker.png", :alt => 'open') %> <%= t'browse.bug.open_title', :bug_name => @bug.id %> <% end %>

<%= render :partial => "navigation" %>
<% if @bug.status == "closed" %> <% end %> <% if @bug.map_bug_comment[0].user.nil? %> <% else %> <% end %>
<%= t 'browse.bug.created_at' %> <%= l @bug.date_created %>
<%= t 'browse.bug.edited_at' %> <%= l @bug.last_changed %>
<%= t 'browse.bug.closed_at' %> <%= l @bug.date_closed %>
<%= t 'browse.bug.opened_by' %> <%= @bug.map_bug_comment[0].commenter_name %> <%= 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 %>
<%= t 'browse.bug.description' %> <%= h(@bug.map_bug_comment[0].comment) %>
<%= t 'browse.node_details.coordinates' %>
<%= link_to ("#{number_with_delimiter(@bug.lat)}, #{number_with_delimiter(@bug.lon)}"), {:controller => 'site', :action => 'index', :lat => h(@bug.lat), :lon => h(@bug.lon), :zoom => "18"} %>

<%if @bug.map_bug_comment.length > 1 %> <% @bug.map_bug_comment[1..-1].each do |bug_comment| %> <% end %>
<%= t 'browse.bug.comment_by' %> <%= t 'browse.bug.comment' %> <%= t 'browse.bug.date' %>
<% if bug_comment.user.nil? %> <%= bug_comment.commenter_name %> <% else %> <%= link_to h(bug_comment.user.display_name), :controller => "user", :action => "view", :display_name => bug_comment.user.display_name %> <% end %> <%= h(bug_comment.comment) %> <%= l bug_comment.date_created %>
<% end %>