Permalink
Browse files

Always show attachment section

  • Loading branch information...
1 parent 302ff09 commit 1481ec7e0594deadc4fd70a70b5f174b07349615 @davidcornu committed May 10, 2012
Showing with 7 additions and 6 deletions.
  1. +7 −6 lib/letter_opener/message.html.erb
@@ -84,15 +84,16 @@
<dd><%= h mail.bcc.join(", ") %></dd>
<% end %>
- <% if @attachments.size > 0 %>
- <dt>Attachments:</dt>
- <dd>
+ <dt>Attachments:</dt>
+ <dd>
+ <% if @attachments.size > 0 %>
<% @attachments.each do |filename, path| %>
<a href="<%= path %>"><%= filename %></a>&nbsp;
<% end %>
- </dd>
- <% end %>
-
+ <% else %>
+ None
+ <% end %>
+ </dd>
</dl>
<% if mail.multipart? %>

0 comments on commit 1481ec7

Please sign in to comment.