2016-01-08 16:05:36 +08:00
|
|
|
<% if activity.attachments.any? %>
|
|
|
|
<% activity.attachments.each do |attachment| %>
|
|
|
|
<div class="break_word">
|
|
|
|
<span class="fl">
|
|
|
|
<span title="<%= attachment.filename %>" id="attachment_<%=attachment.id %>">
|
2016-01-21 10:36:30 +08:00
|
|
|
<%= link_to_short_attachment attachment,:length=> 58, :class => 'hidden link_file_a fl newsBlue mw400', :download => true -%>
|
2016-01-08 16:05:36 +08:00
|
|
|
</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: 10, omission: '...')),user_path(attachment.author),:class => "c_orange" %>,
|
|
|
|
<%= format_time(attachment.created_on) %>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="cl"></div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|