X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f414dc4c1862c8d471b865dea5c7ac141de6d533..6870192ada3c34ffe5f0dc4c33ce2ad55bc2d263:/apps/workbench/app/views/users/_manage_virtual_machines.html.erb diff --git a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb index 5683316841..295311d33d 100644 --- a/apps/workbench/app/views/users/_manage_virtual_machines.html.erb +++ b/apps/workbench/app/views/users/_manage_virtual_machines.html.erb @@ -1,29 +1,57 @@ -
+
+ + +

- For more information see <%= link_to raw('Arvados Docs → User Guide → SSH access'), - "#{Rails.configuration.arvados_docsite}/user/getting_started/ssh-access-unix.html", - target: "_blank"%>. A sample ~/.ssh/config entry is provided below. + For more information see <%= link_to raw('Arvados Docs → User Guide → VM access'), + "#{Rails.configuration.arvados_docsite}/user/getting_started/vm-login-with-webshell.html", + target: "_blank"%>.

<% if !@my_virtual_machines.any? %> -
-
-
-

You do not have access to any virtual machines. A request was sent on your behalf.

+
+
+

+ You do not have access to any virtual machines. Some + Arvados features require using the command line. You may + request access to a hosted virtual machine with the command + line shell. +

+
+ <%= link_to({ + action: 'request_shell_access', + controller: 'users', + id: current_user.uuid + }, + method: :post, + remote: true, + class: 'btn btn-xs btn-primary', + data: { + disable_with: "Sending request...", + on_error_hide: '.no_shell_access .alert-success', + on_error_show: '.no_shell_access .alert-danger', + on_error_write: '.no_shell_access .alert-danger .error-text', + on_success_hide: '.no_shell_access .alert-danger', + }) do %> + Send request for shell access + <% end %>
- -
- You do not have access to any virtual machines. Many of the Arvados features depend on having shell access to a hosted VM. -     -
- <%= button_to('Request shell access', request_shell_access_user_url(id: current_user.uuid), - id: 'request_shell_submit', class: 'btn btn-xs btn-primary', remote: true) %> -
+ +
<% else %> - + @@ -35,6 +63,9 @@ + <% if Rails.configuration.shell_in_a_box_url %> + + <% end %> @@ -53,12 +84,21 @@ <% end %> <% end %> + <% if Rails.configuration.shell_in_a_box_url %> + + <% end %> <% end %>
Host name Login name Command line Web shell beta
+ <% @my_vm_logins[vm[:uuid]].andand.each do |login| %> + <%= link_to webshell_virtual_machine_path(vm, login: login), title: "Open a terminal session in your browser", class: 'btn btn-xs btn-default', target: "_blank" do %> + Log in as <%= login %>
+ <% end %> + <% end %> +
-

~/.ssh/config:

+

Sample SSH Conig ~/.ssh/config:

Host *.arvados
       TCPKeepAlive yes
       ServerAliveInterval 60
@@ -66,3 +106,4 @@
     
<% end %>
+