workbench: Add initial reader tokens support.
[arvados.git] / apps / workbench / app / controllers / jobs_controller.rb
index e6179ffdd992c1cee118825e0f6792764aa1f608..4705bb5204ed47ec9429901cb701b8ef69c3f984 100644 (file)
@@ -14,7 +14,10 @@ class JobsController < ApplicationController
       nodes << c
     end
 
-    @svg = ProvenanceHelper::create_provenance_graph nodes, "provenance_svg", {:all_script_parameters => true, :script_version_nodes => true}
+    @svg = ProvenanceHelper::create_provenance_graph nodes, "provenance_svg", {
+      :request => request,
+      :all_script_parameters => true, 
+      :script_version_nodes => true}
   end
 
   def index
@@ -30,4 +33,16 @@ class JobsController < ApplicationController
   def show
     generate_provenance([@object])
   end
+
+  def index_pane_list
+    if params[:uuid]
+      %w(Recent Provenance)
+    else
+      %w(Recent)
+    end
+  end
+
+  def show_pane_list
+    %w(Attributes Provenance Metadata JSON API)
+  end
 end