<% attachments.each_with_index do |attachment,i| %>
    <div id="attachment_<%= attachment.id%>">
      <%= link_to_short_attachment attachment, :class => 'link_file_a fl', :download => true -%>
      <%= link_to('&nbsp;'.html_safe, attachment_path(attachment, :format => 'js'), :method => 'delete', :remote => true, :title => '删除', :class => 'remove-upload fl', :confirm => l(:text_are_you_sure)) if attachment.id && User.current == attachment.author %>
      <span class="ml5 fl">(<%= number_to_human_size attachment.filesize %>)</span>
      <div class="cl"></div>
    </div>
<% end -%>
