<div style="font-weight:normal;">
  <% 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 %>
      <div class="cl"></div>
  <% end %>
</div>
