X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7599f98957334d1924550205f7ba12a726de7eb0..3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5:/app/views/notes/mine.html.erb diff --git a/app/views/notes/mine.html.erb b/app/views/notes/mine.html.erb index c58548b47..e385e942b 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/mine.html.erb @@ -23,9 +23,9 @@ <%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %> <% if note.author.nil? %> - <%= note.author_name %> + <% else %> - <%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %> + <%= link_to h(note.author.display_name), user_url(:display_name => note.author.display_name) %> <% end %> <%= note.comments.first.body.to_html %> <%= l note.created_at %>