Merge branch 'master' into 3453-arv-list-docker-images
[arvados.git] / apps / workbench / app / views / collections / _show_files.html.erb
index d888b2e859b564c2cedba38ad60e0801d567e718..e592ee49599d641d956f487fa73240f9f27e9ab0 100644 (file)
@@ -4,7 +4,7 @@
 <% else %>
   <ul id="collection_files" class="collection_files">
   <% 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 %></ul></li>