@@ -25,15 +25,13 | |||||
25 | <td></td> |
|
25 | <td></td> | |
26 | <td><%= link_to(file.filename, {:controller => 'versions', :action => 'download', :id => version, :attachment_id => file}, |
|
26 | <td><%= link_to(file.filename, {:controller => 'versions', :action => 'download', :id => version, :attachment_id => file}, | |
27 | :title => file.description) %></td> |
|
27 | :title => file.description) %></td> | |
28 |
<td align="center"><%= format_ |
|
28 | <td align="center"><%= format_time(file.created_on) %></td> | |
29 | <td align="center"><%= number_to_human_size(file.filesize) %></td> |
|
29 | <td align="center"><%= number_to_human_size(file.filesize) %></td> | |
30 | <td align="center"><%= file.downloads %></td> |
|
30 | <td align="center"><%= file.downloads %></td> | |
31 | <td align="center"><small><%= file.digest %></small></td> |
|
31 | <td align="center"><small><%= file.digest %></small></td> | |
32 | <% if delete_allowed %> |
|
32 | <% if delete_allowed %> | |
33 | <td align="center"> |
|
33 | <td align="center"> | |
34 | <div class="contextual"> |
|
|||
35 | <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :method => :post %> |
|
34 | <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :method => :post %> | |
36 | </div> |
|
|||
37 | </td> |
|
35 | </td> | |
38 | <% end %> |
|
36 | <% end %> | |
39 | </tr> |
|
37 | </tr> |
General Comments 0
You need to be logged in to leave comments.
Login now