% show_info = true if show_info.nil? %> <% show_author = true if !show_author.nil? %>
<%= link_to avatar(note_item.author, :size => "32"), note_source_url(note_item.source), :id => "avatar" %> | <% else %><%= link_to avatar_to(note_item.source, :size => "32"), note_source_url(note_item.source), :id => "avatar" %> | <% end %> <% end %>
<%= link_to(image_tag('edit.png'), {:controller => 'notes', :action => 'edit', :project_id => @project, :id => note_item}, :class => "delete", :title => l(:button_edit)) if note_item.editable_by?(User.current, @project) %>
<%= link_to(image_tag('delete.png'),
{:controller => :notes, :action => 'destroy', :id => note_item, :project_id => @project},
:remote => true,
:method => :delete,
:data => {:confirm => l(:text_are_you_sure)},
:class => "delete", :title => l(:button_delete)) if note_item.destroyable_by?(User.current, @project) %>
<%= note_type_icon(note_item) %> <%= "#{note_item.subject} - " unless note_item.subject.blank? %> <%= link_to_source(note_item.source) + "," if show_info %> <%= authoring_note note_item.created_on, note_item.author %> <%= link_to('¶'.html_safe, {:controller => 'notes', :action => 'show', :project_id => @project, :id => note_item}, :title => l(:button_show), :class => "wiki-anchor") %>
<% note_item.custom_values.each do |custom_value| %>
<% if !custom_value.value.blank? %>
<%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %> <% end %> <% end %>
<%= note_content(note_item) %>
<%= auto_contacts_thumbnails(note_item) %>
<%= render partial: 'attachments/links', locals: { container: note_item, attachments: note_item.attachments, options: {} } if note_item.attachments.any? %>
|