_data_file.html.erb 330 B

123456789101112
  1. <tr>
  2. <td>
  3. <%= link_to data_file.name, download_data_file_url(data_file) %>
  4. </td>
  5. <% if data_file.repository.can_upload_files?(current_user) %>
  6. <td>
  7. <%= form_for data_file, html: { method: :delete } do |f| %>
  8. <%= f.submit "Remove", class: "btn btn-danger" %>
  9. <% end %>
  10. </td>
  11. <% end %>
  12. </tr>