解决上传文件名过长问题(作业中部分文件名超出边框)

This commit is contained in:
huang 2015-03-20 17:04:04 +08:00
parent 72d41fd07a
commit 5b050b1037
1 changed files with 2 additions and 2 deletions

View File

@ -7,9 +7,9 @@
<% end%>
<span title="<%= attachment.filename%>" id = "attachment_">
<% if options[:length] %>
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true,:length => options[:length] -%>
<%= link_to_short_attachment attachment, :class => 'icon icon-attachment', :download => true,:length => options[:length] -%>
<% else %>
<%= link_to_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<%= link_to_short_attachment attachment, :class => 'icon icon-attachment', :download => true -%>
<% end %>
</span>
<%if is_float%>