4285: prepend './' to file path being retrieved when it is in a subdir in a collection.
[arvados.git] / apps / workbench / app / controllers / jobs_controller.rb
index aa65e5289e42d80522157d21a73f531f651e0abe..40f4378544cb7c38ee659a3055874bed8f9cb533 100644 (file)
@@ -36,7 +36,11 @@ class JobsController < ApplicationController
 
   def cancel
     @object.cancel
-    redirect_to @object
+    if params[:return_to]
+      redirect_to params[:return_to]
+    else
+      redirect_to @object
+    end
   end
 
   def show
@@ -53,6 +57,6 @@ class JobsController < ApplicationController
   end
 
   def show_pane_list
-    %w(Status Log Attributes Provenance Metadata JSON API)
+    %w(Status Log Details Provenance Advanced)
   end
 end