X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/882700c5c8890ba28dc83a9dc526b7bc242a0278..f77a3c75bee528caaa6fc8e237ee6eaef704efe0:/app/views/map_bugs/my_bugs.html.erb?ds=sidebyside diff --git a/app/views/map_bugs/my_bugs.html.erb b/app/views/map_bugs/my_bugs.html.erb index 5e6c7152b..d837c7829 100644 --- a/app/views/map_bugs/my_bugs.html.erb +++ b/app/views/map_bugs/my_bugs.html.erb @@ -13,7 +13,7 @@ <%= t'bugs.user.last_changed' %> <% @bugs.each do |bug| %> - bgcolor="#EEEEEE"<% end %>> + bgcolor="#EEEEEE"<% end %>> <% if bug.status == "closed" %> <%= image_tag("closed_bug_marker.png", :alt => 'closed') %> @@ -22,10 +22,10 @@ <% end %> <%= link_to bug.id.to_s, :controller => "browse", :action => "bug", :id => bug.id %> - <% if bug.comments.first.user.nil? %> - <%= bug.comments.first.author_name %> + <% if bug.author.nil? %> + <%= bug.author_name %> <% else %> - <%= link_to h(bug.comments.first.user.display_name), :controller => "user", :action => "view", :display_name => bug.comments.first.user.display_name %> + <%= link_to h(bug.author_name), :controller => "user", :action => "view", :display_name => bug.author_name %> <% end %> <%= htmlize bug.comments.first.body %> <%= l bug.created_at %>