<% content_for :email_heading do %>
  <%= l('mail.label_attachment_new') %>
<% end %>
<%= l('mail.text_attachment_added', {
    :user => link_to_user(@attachments.first.author, {:only_path => false}),
    :time => format_time(@attachments.first.current_version.updated_at),
    :added_to => link_to( h(@added_to), @added_to_url)
}).html_safe %>
<%  content_for :email_prefooter do %>
    <p><b>
      <%=l :label_issue_attachments_heading %>
    </b></p>
    <ul class="attachments">
      <% @attachments.each do |attachment| %>
        <li>
          <%= link_to_attachment(attachment, {:only_path => false}) %>
          <i>(<%= number_to_human_size(attachment.filesize) %>)</i>
          <%= " - v#{attachment.version}" %>
          <% unless attachment.description.blank? %>
            <p style="padding-left:10px">
              <%= " - #{attachment.description}" %>
            </p>
          <% end %>
        </li>
      <% end %>
    </ul>

<% end %>