<% files.each do |file| %> <% end %>
Name Path Size Actions
<%= namelink file %> <%= h file.url %> <%= file.size_s %> <% if file.can_update? cuser %> <%= link_to icon('pencil'), edit_data_file_path(file) %> <% end; if file.can_destroy? cuser %> <%= link_to icon('times'), file, confirm: 'Are you sure?', method: :delete %> <% end %>