<%= namelink file %> |
<%= h file.url %> |
<%= file.size_s %> |
<% if file.can_update? cuser %>
<%= link_to 'Edit', edit_data_file_path(file) %>
<% end; if file.can_destroy? cuser %>
<%= link_to 'Destroy', file, :confirm => 'Are you sure?', :method => :delete %>
<% end %>
|
<% end %>