2872: all tests are updated to reflect the new ui.
[arvados.git] / apps / workbench / app / controllers / collections_controller.rb
index ece8ccc352e41dbc6df1270eccfc05de8baa4846..24b9b1f755780ee132119198267c9577e2180411 100644 (file)
@@ -41,11 +41,14 @@ class CollectionsController < ApplicationController
   end
 
   def choose
-    @name_links = Link.
+    params[:limit] ||= 20
+    @objects = Link.
       filter([['link_class','=','name'],
               ['head_uuid','is_a','arvados#collection']])
-    @name_links.collect { |x| x }
-    $stderr.puts @name_links.inspect
+    find_objects_for_index
+    @next_page_href = (next_page_offset and
+                       url_for(offset: next_page_offset, partial: true))
+    @name_links = @objects
     @objects = Collection.
       filter([['uuid','in',@name_links.collect(&:head_uuid)]])
     super