4091: Use <=N instead of <N+1. Pass "uuid not in" filter to API instead of adding...
[arvados.git] / apps / workbench / app / controllers / jobs_controller.rb
index dc31229189e9a7be5636eb38ec58f9aa510aec0e..40f4378544cb7c38ee659a3055874bed8f9cb533 100644 (file)
@@ -27,15 +27,20 @@ class JobsController < ApplicationController
     if params[:uuid]
       @objects = Job.where(uuid: params[:uuid])
       generate_provenance(@objects)
+      render_index
     else
       @limit = 20
+      super
     end
-    super
   end
 
   def cancel
     @object.cancel
-    redirect_to @object
+    if params[:return_to]
+      redirect_to params[:return_to]
+    else
+      redirect_to @object
+    end
   end
 
   def show
@@ -52,6 +57,6 @@ class JobsController < ApplicationController
   end
 
   def show_pane_list
-    %w(Status Attributes Provenance Metadata JSON API)
+    %w(Status Log Details Provenance Advanced)
   end
 end