|
|
|
@ -1,7 +1,10 @@
|
|
|
|
|
<div class="attachments" style="font-weight:normal;">
|
|
|
|
|
<% is_float ||= false %>
|
|
|
|
|
<% for attachment in attachments %>
|
|
|
|
|
<p style="width: 100%;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;">
|
|
|
|
|
<div style="max-width:65%;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;float: left;">
|
|
|
|
|
<%if is_float%>
|
|
|
|
|
<div style="max-width:55%;white-space: nowrap; overflow: hidden; text-overflow: ellipsis;float: left;">
|
|
|
|
|
<% end%>
|
|
|
|
|
<span title="<%= attachment.filename%>" id = "attachment_">
|
|
|
|
|
<% if options[:length] %>
|
|
|
|
|
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true,:length => options[:length] -%>
|
|
|
|
@ -9,7 +12,10 @@
|
|
|
|
|
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
|
|
|
|
|
<% end %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<%if is_float%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
|
|
|
|
|
<% if attachment.is_text? %>
|
|
|
|
|
<%= link_to image_tag('magnifier.png'),
|
|
|
|
|
:controller => 'attachments',
|
|
|
|
|