2015-04-28 15:02:10 +08:00
|
|
|
<div style="font-weight:normal;">
|
2015-04-28 12:21:35 +08:00
|
|
|
<% for attachment in attachments %>
|
|
|
|
<div title="<%= attachment.filename%>" id = "attachment_" style="max-width: 300px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;float: left;">
|
|
|
|
<%= link_to_short_attachment attachment, :class => 'link_file', :download => true, :length => 100 -%>
|
|
|
|
</div>
|
|
|
|
<% if attachment.is_text? %>
|
|
|
|
<div style="float: left;">
|
|
|
|
<%= link_to image_tag('magnifier.png'),
|
|
|
|
{:controller => 'attachments',
|
|
|
|
:action => 'show',
|
|
|
|
:id => attachment,
|
|
|
|
:filename => attachment.filename},
|
|
|
|
:target => "_blank"%>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2015-05-14 15:09:15 +08:00
|
|
|
<div class="cl"></div>
|
2015-04-28 12:21:35 +08:00
|
|
|
<% end %>
|
|
|
|
</div>
|