X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4bc4165ea8acbcfb2c1a19e0793a52c48d04cc59..241a1049be1eb101723a3714125eef8baa3c33dc:/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