X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5898b494df440ba9659ac8fbe2e150285a9a85a6..f77a3c75bee528caaa6fc8e237ee6eaef704efe0:/app/views/browse/bug.html.erb diff --git a/app/views/browse/bug.html.erb b/app/views/browse/bug.html.erb index 5c65b3e41..698532290 100644 --- a/app/views/browse/bug.html.erb +++ b/app/views/browse/bug.html.erb @@ -2,14 +2,14 @@

- <% 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 %> -

+ <% 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" %> @@ -17,71 +17,67 @@ - - - - - - - - - - - <% 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) %>
+ + + + + + + + + <% if @bug.status == "closed" %> + + + + + <% end %> + + + <% if @bug.author.nil? %> + + <% else %> + + <% end %> + + + + + + + + + +
<%= t 'browse.bug.created_at' %><%= l @bug.created_at %>
<%= t 'browse.bug.edited_at' %><%= l @bug.updated_at %>
<%= t 'browse.bug.closed_at' %><%= l @bug.closed_at %>
<%= t 'browse.bug.opened_by' %> <%= @bug.author_name %> <%= link_to h(@bug.author_name), :controller => "user", :action => "view", :display_name => @bug.author_name %>
<%= 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"} %>
- - <%= 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 %> + <% if @bug.comments.length > 1 %> + + + + + + + <% @bug.comments[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.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 %> -
- +
+ <%= render :partial => "map", :object => @bug %> - \ No newline at end of file +