mailr/themes/olive/views/messages/_attachments.html.erb

14 lines
353 B
Plaintext
Raw Normal View History

2011-08-24 19:20:13 +02:00
<div class="attachments">
<span class="title"><%= t(:attachments,:scope=>:message) %></span>
<table class="table">
<% trclass = :even %>
<% @attachments.each do |a| %>
<tr class="<%= trclass.to_s %>">
<%= render :partial => 'attachment', :object => a %>
</tr>
<% trclass == :even ? trclass = :odd : trclass = :even %>
<% end %>
</table>
</div>