- <% if note.author.nil? %>
- <td> <%= note.author_name %> </td>
- <% else %>
- <td><%= link_to h(note.author_name), :controller => "user", :action => "view", :display_name => note.author_name %></td>
- <% end %>
- <td> <%= htmlize note.comments.first.body %> </td>
- <td><%= l note.created_at %></td>
- <td><%= l note.updated_at %></td>
+ <td><%= note_author(note.author) %></td>
+ <td><%= note.comments.first.body.to_html %></td>
+ <td><%= t '.ago_html', :when => friendly_date(note.created_at) %></td>
+ <td><%= t '.ago_html', :when => friendly_date(note.updated_at) %></td>