X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9e3bb9b984ff700fc3455f87437a8f1ac5841f0e..d68cb1845e82f44ecf126ae4fd1ba3abc00f4463:/apps/workbench/app/controllers/virtual_machines_controller.rb diff --git a/apps/workbench/app/controllers/virtual_machines_controller.rb b/apps/workbench/app/controllers/virtual_machines_controller.rb index c3512e2e4d..73231f8cc0 100644 --- a/apps/workbench/app/controllers/virtual_machines_controller.rb +++ b/apps/workbench/app/controllers/virtual_machines_controller.rb @@ -1,7 +1,4 @@ class VirtualMachinesController < ApplicationController - def index_pane_list - %w(recent help) - end def index @objects ||= model_class.all @vm_logins = {} @@ -22,4 +19,14 @@ class VirtualMachinesController < ApplicationController end super end + + def webshell + return render_not_found if not Rails.configuration.shell_in_a_box_url + @webshell_url = Rails.configuration.shell_in_a_box_url % { + uuid: @object.uuid, + hostname: @object.hostname, + } + render layout: false + end + end