2011-08-24 19:20:13 +02:00
|
|
|
<div class="attachments">
|
|
|
|
<span class="title"><%= t(:attachments,:scope=>:message) %></span>
|
|
|
|
<table class="table">
|
|
|
|
|
|
|
|
<% trclass = :even %>
|
2011-08-27 22:00:06 +02:00
|
|
|
<% for idx in 0..@attachments.size-1 %>
|
2011-08-24 19:20:13 +02:00
|
|
|
<tr class="<%= trclass.to_s %>">
|
2011-08-27 22:00:06 +02:00
|
|
|
<%= render :partial => 'attachment', :object => @attachments[idx] %>
|
2011-08-24 19:20:13 +02:00
|
|
|
</tr>
|
|
|
|
<% trclass == :even ? trclass = :odd : trclass = :even %>
|
|
|
|
<% end %>
|
|
|
|
</table>
|
|
|
|
</div>
|