Feature #8984 » patch_v1.0.diff
| app/views/files/index.html.erb Thu Oct 06 11:04:32 2011 +0000 → app/views/files/index.html.erb Thu Oct 06 14:52:25 2011 +0200 | ||
|---|---|---|
|
|
||
|
<table class="list files">
|
||
|
<thead><tr>
|
||
|
<th></th>
|
||
|
<%= sort_header_tag('filename', :caption => l(:field_filename)) %>
|
||
|
<%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
|
||
|
<%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %>
|
||
|
<%= sort_header_tag('downloads', :caption => l(:label_downloads_abbr), :default_order => 'desc') %>
|
||
|
<th>MD5</th>
|
||
|
<th></th>
|
||
|
</tr></thead>
|
||
|
<tbody>
|
||
|
<% @containers.each do |container| %>
|
||
| ... | ... | |
|
<% end -%>
|
||
|
<% container.attachments.each do |file| %>
|
||
|
<tr class="file <%= cycle("odd", "even") %>">
|
||
|
<td align="center">
|
||
|
<%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
|
||
|
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
|
||
|
</td>
|
||
|
<td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
|
||
|
<td class="created_on"><%= format_time(file.created_on) %></td>
|
||
|
<td class="filesize"><%= number_to_human_size(file.filesize) %></td>
|
||
|
<td class="downloads"><%= file.downloads %></td>
|
||
|
<td class="digest"><%= file.digest %></td>
|
||
|
<td align="center">
|
||
|
<%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
|
||
|
:confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<% end
|
||
|
reset_cycle %>
|
||
- « Previous
- 1
- 2
- Next »