X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0caaf54de5b85070548381a814106a07f366b11a..bb490aca81d8063a9ad8dd8f1a023c709c096792:/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 @@
|
-
-
- <%= 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.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"} %> |
+
+
-
- <%= 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 %>
+ <% 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 %>
-
\ No newline at end of file
+