<% limit = -1 if limit.blank? %>
<%= link_to avatar_to(note_data.source, :size => "32"), note_source_url(note_data.source), :id => "avatar" %>

<%= note_type_icon(note_data) %> <%= link_to_source note_data.source %>, <%= time_tag(note_data.created_on) %> <%= l(:label_crm_time_ago) %> <%= link_to('¶'.html_safe, {:controller => 'notes', :action => 'show', :project_id => @project, :id => note_data}, :title => l(:button_show), :class => "wiki-anchor") %>

<%= truncate(note_data.content, :length => limit) %>

<%= "#{l(:label_file_plural)}: #{note_data.attachments.collect{|a| a.filename}.join(', ')}".html_safe if note_data.attachments.any? %>