<% 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" %>
|
<%= t 'browse.bug.created_at' %> |
<%= l @bug.date_created %> |
<%= t 'browse.bug.edited_at' %> |
<%= l @bug.last_changed %> |
<% if @bug.status == "closed" %>
<%= t 'browse.bug.closed_at' %> |
<%= l @bug.date_closed %> |
<% end %>
<%= t 'browse.bug.opened_by' %> |
<% if @bug.map_bug_comment[0].user.nil? %>
<%= @bug.map_bug_comment[0].commenter_name %> |
<% else %>
<%= 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 %> |
<% end %>
<%= 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 %>
<%= t 'browse.bug.comment_by' %> | <%= t 'browse.bug.comment' %> | <%= t 'browse.bug.date' %> |
<% @bug.map_bug_comment[1..-1].each do |bug_comment| %>
<% 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 %>
<% end %>
|
<%= render :partial => "map", :object => @bug %>