<%= 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 %>
|
<% end %>