<% attachments.each_with_index do |attachment,i| %>
    <div id="attachment_<%= attachment.id%>">
      <span class="fl">
          <span title="点击可下载">
            <%= link_to_short_attachment attachment,:length=> 58, :class => 'hidden link_file_a fl newsBlue mw360', :download => true -%>
          </span>
      </span>
      <%= 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 && status != 2 %>
      <span class="postAttSize">(<%= number_to_human_size attachment.filesize %>)</span>
      <span class="author">
        <%= format_time(attachment.created_on) %>
      </span>
      <div class="cl"></div>
    </div>
<% end -%>