19 lines
875 B
Plaintext
19 lines
875 B
Plaintext
<% if activity.attachments.any? %>
|
|
<% activity.attachments.each do |attachment| %>
|
|
<div class="break_word">
|
|
<span class="fl">
|
|
<span title="<%= attachment.filename %>" id="attachment_<%=attachment.id %>">
|
|
<%= link_to_short_attachment attachment,:length=> 58, :class => 'hidden link_file_a fl newsBlue mw380', :download => true -%>
|
|
</span>
|
|
</span>
|
|
<span class="postAttSize">(
|
|
<%= number_to_human_size attachment.filesize %>)
|
|
</span>
|
|
<span class="author" title="<%= attachment.author%>">
|
|
<%= link_to h(truncate(attachment.author.name, length: 15, omission: '...')),user_path(attachment.author),:class => "c_orange" %>,
|
|
<%= format_time(attachment.created_on) %>
|
|
</span>
|
|
</div>
|
|
<div class="cl"></div>
|
|
<% end %>
|
|
<% end %> |