X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/4bc4165ea8acbcfb2c1a19e0793a52c48d04cc59..fbe39c0c33a9c9c3451ad6bf8ec4b336e7e3b24f:/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..19763b926c 100644 --- a/apps/workbench/app/controllers/virtual_machines_controller.rb +++ b/apps/workbench/app/controllers/virtual_machines_controller.rb @@ -1,7 +1,8 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class VirtualMachinesController < ApplicationController - def index_pane_list - %w(recent help) - end def index @objects ||= model_class.all @vm_logins = {} @@ -22,4 +23,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