<% 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.created_at %> |
<%= t 'browse.bug.edited_at' %> |
<%= l @bug.updated_at %> |
<% if @bug.status == "closed" %>
<%= t 'browse.bug.closed_at' %> |
<%= l @bug.closed_at %> |
<% end %>
<%= t 'browse.bug.opened_by' %> |
<% if @bug.author.nil? %>
<%= @bug.author_name %> |
<% else %>
<%= link_to h(@bug.author_name), :controller => "user", :action => "view", :display_name => @bug.author_name %> |
<% end %>
<%= t 'browse.bug.description' %> |
<%= h(@bug.comments.first.body) %> |
<%= 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.comments.length > 1 %>
<%= t 'browse.bug.comment_by' %> |
<%= t 'browse.bug.comment' %> |
<%= t 'browse.bug.date' %> |
<% @bug.comments[1..-1].each do |bug_comment| %>
<% if bug_comment.user.nil? %>
<%= bug_comment.author_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.body) %> |
<%= l bug_comment.created_at %> |
<% end %>
<% end %>
|
<%= render :partial => "map", :object => @bug %>