Project

General

Profile

Feature #8984 » patch_v1.0.diff

pasquale [:dedalus], 2011-10-06 14:56

View differences:

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
8 8

  
9 9
<table class="list files">
10 10
  <thead><tr>
11
    <th></th>
11 12
    <%= sort_header_tag('filename', :caption => l(:field_filename)) %>
12 13
    <%= sort_header_tag('created_on', :caption => l(:label_date), :default_order => 'desc') %>
13 14
    <%= sort_header_tag('size', :caption => l(:field_filesize), :default_order => 'desc') %>
14 15
    <%= sort_header_tag('downloads', :caption => l(:label_downloads_abbr), :default_order => 'desc') %>
15 16
    <th>MD5</th>
16
    <th></th>
17 17
  </tr></thead>
18 18
  <tbody>
19 19
<% @containers.each do |container| %>
......
27 27
  <% end -%>
28 28
  <% container.attachments.each do |file| %>
29 29
  <tr class="file <%= cycle("odd", "even") %>">
30
    <td align="center">
31
    <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
32
                                         :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
33
    </td>
30 34
    <td class="filename"><%= link_to_attachment file, :download => true, :title => file.description %></td>
31 35
    <td class="created_on"><%= format_time(file.created_on) %></td>
32 36
    <td class="filesize"><%= number_to_human_size(file.filesize) %></td>
33 37
    <td class="downloads"><%= file.downloads %></td>
34 38
    <td class="digest"><%= file.digest %></td>
35
    <td align="center">
36
    <%= link_to(image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => file},
37
                                         :confirm => l(:text_are_you_sure), :method => :post) if delete_allowed %>
38
    </td>
39 39
  </tr>
40 40
  <% end
41 41
  reset_cycle %>
(2-2/2)