X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0bd1c28bed9a0756c61037947d5a9dccd5066f00..852573d60776116bed4e86431667abf8c77d3f9a:/apps/workbench/app/views/collections/_show_files.html.erb
diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb
index ea55577e70..8dbc9ba138 100644
--- a/apps/workbench/app/views/collections/_show_files.html.erb
+++ b/apps/workbench/app/views/collections/_show_files.html.erb
@@ -1,10 +1,29 @@
+
+
+
+
<% file_tree = @object.andand.files_tree %>
<% if file_tree.nil? or file_tree.empty? %>
This collection is empty.
<% else %>
<% dirstack = [file_tree.first.first] %>
- <% file_tree.each_with_index do |(dirname, filename, size), index| %>
+ <% file_tree.take(10000).each_with_index do |(dirname, filename, size), index| %>
<% file_path = CollectionsHelper::file_path([dirname, filename]) %>
<% while dirstack.any? and (dirstack.last != dirname) %>
<% dirstack.pop %>
@@ -18,7 +37,7 @@
<% else %>
<% link_params = {controller: 'collections', action: 'show_file',
- uuid: @object.uuid, file: file_path, size: size} %>
+ uuid: @object.portable_data_hash, file: file_path, size: size} %>