]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/mine.html.erb
Remove the author_name field from notes
[rails.git] / app / views / notes / mine.html.erb
index c58548b47c385aa2cc32bf8a5f26edce345877e0..e385e942baad0c42473d0824defa8e0850a47450 100644 (file)
@@ -23,9 +23,9 @@
     </td>
     <td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
     <% if note.author.nil? %> 
     </td>
     <td><%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %></td>
     <% if note.author.nil? %> 
-      <td> <%= note.author_name %> </td> 
+      <td></td> 
     <% else %> 
     <% else %> 
-      <td><%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %></td>
+      <td><%= link_to h(note.author.display_name), user_url(:display_name => note.author.display_name) %></td>
     <% end %>
     <td> <%= note.comments.first.body.to_html  %> </td>        
     <td><%= l note.created_at %></td>
     <% end %>
     <td> <%= note.comments.first.body.to_html  %> </td>        
     <td><%= l note.created_at %></td>