]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/edit.html.erb
Use user_path links. Fixes #1785
[rails.git] / app / views / trace / edit.html.erb
index 935862af4766ca30e9da188b227d97f56b528950..07e9820e6ada5894679561fab8a25a7c041cd3e8 100644 (file)
@@ -32,7 +32,7 @@
   <% end %>
     <div class='form-row'>
       <label class='standard-label'><%= t'trace.edit.owner' %></label>
-      <p class='deemphasize'><%= link_to h(@trace.user.display_name), {:controller => 'user', :action => 'view', :display_name => @trace.user.display_name} %></p>
+      <p class='deemphasize'><%= link_to h(@trace.user.display_name), user_path(@trace.user) %></p>
     </div>
     <div class='form-row'>
       <label class='standard-label'><%= t'trace.edit.description' %></label>