_file_panel.html.erb 461 B

1234567891011121314151617
  1. <div class="panel panel-primary">
  2. <div class="panel-heading">
  3. Files
  4. </div>
  5. <table class="panel-body table table-striped table-bordered table-hover">
  6. <tbody>
  7. <% for file in repository.data_files %>
  8. <%= render file %>
  9. <% end %>
  10. </tbody>
  11. </table>
  12. <% if repository.can_upload_files?(current_user) %>
  13. <div class="panel-footer">
  14. <%= render 'data_files/form', repository: repository %>
  15. </div>
  16. <% end %>
  17. </div>