This repository has been archived on 2024-12-01. You can view files and clone it, but cannot push or open issues or pull requests.
redmine_rodax_crm/app/views/notes/_note_data.html.erb

19 lines
884 B
Plaintext
Raw Permalink Normal View History

<% limit = -1 if limit.blank? %>
<table class="note_data">
<tr>
<td class="avatar"><%= link_to avatar_to(note_data.source, :size => "32"), note_source_url(note_data.source), :id => "avatar" %></td>
<td class="name">
<h4 class="contacts_header">
<%= note_type_icon(note_data) %>
<%= link_to_source note_data.source %>,
<%= time_tag(note_data.created_on) %>
<%= l(:label_time_ago) %>
<%= link_to('&para;', {:controller => 'notes', :action => 'show', :project_id => @project, :note_id => note_data}, :title => l(:button_show), :class => "wiki-anchor") %>
</h4>
<div class="wiki note">
<%= textilizable(truncate(note_data.content, :length => limit)) %>
<p><%= "<strong>#{l(:label_file_plural)}:</strong> #{note_data.attachments.collect{|a| a.filename}.join(', ')}" if note_data.attachments.any? %></p>
</div>
</td>
</tr>
</table>