Merge branch '2755-python-sdk-permissions'
[arvados.git] / apps / workbench / app / controllers / pipeline_instances_controller.rb
index 221ed87ad7081af9cd1f015700570cc020a2be14..761dc914145904ca92a01ab28fceb8a9e2acd674 100644 (file)
@@ -142,7 +142,11 @@ class PipelineInstancesController < ApplicationController
   end
 
   def show_pane_list
-    %w(Components Graph Attributes Metadata JSON API)
+    panes = %w(Components Graph Attributes Metadata JSON API)
+    if @object and @object.state.in? ['New', 'Ready']
+      panes = %w(Inputs) + panes
+    end
+    panes
   end
 
   def compare_pane_list 
@@ -150,7 +154,7 @@ class PipelineInstancesController < ApplicationController
   end 
 
   def index
-    @objects ||= model_class.limit(20).all
+    @limit = 20
     super
   end