<%= h @file %>

<%= cascade @file, [["Filename", "name.filename".to_sym], "size_s", "directory", "md5_s", ["Modified", "created_at"]] %> <% if cuser and cuser.admin? %>

[ <% 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 %>

<%= link_to "Download", @file.url %>

Related Files

<% @file.related_files.each do |related| %> <% end %>
Name Size MD5 Modified
<%= link_to (h related.name.filename), related.name.url %> <%= related.size_s %> MB <%= related.md5_s %> <%= shorttime related.created_at %>
<%= add_comments @file %>