X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7ec003dd01ff25765b46788aa0ec90cedd94a2de..ba5107ebb543a396fc78069c75c431e4d3887ee1:/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 %>