20690: Remove workbench1 and testing/packaging references.
[arvados.git] / apps / workbench / app / views / users / _virtual_machines.html.erb
diff --git a/apps/workbench/app/views/users/_virtual_machines.html.erb b/apps/workbench/app/views/users/_virtual_machines.html.erb
deleted file mode 100644 (file)
index 57b4d6a..0000000
+++ /dev/null
@@ -1,111 +0,0 @@
-<%# Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: AGPL-3.0 %>
-
-<div class="panel panel-default">
-  <div class="panel-heading">
-    <h4 class="panel-title">
-      <%= link_to virtual_machines_user_path(current_user) do %>
-        Virtual Machines
-      <% end %>
-
-    </h4>
-  </div>
-
-<div id="manage_virtual_machines" class="panel-body">
-  <p>
-    For more information see <%= link_to raw('Arvados Docs &rarr; User Guide &rarr; VM access'),
-  "#{Rails.configuration.Workbench.ArvadosDocsite}/user/getting_started/vm-login-with-webshell.html",
-  target: "_blank"%>.
-  </p>
-
-  <% if !@my_virtual_machines.any? %>
-    <div id="no_shell_access" class="no_shell_access">
-      <div class="alert alert-warning clearfix">
-        <p>
-          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.
-        </p>
-        <div class="pull-right">
-          <%= 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 %>
-        </div>
-      </div>
-      <div class="alert alert-success" style="display:none">
-        <p class="contain-align-left"><%# (see javascripts/request_shell_access.js) %></p>
-      </div>
-      <div class="alert alert-danger" style="display:none">
-        <p class="contain-align-left">Sorry, something went wrong. Please try again. (<span class="error-text"></span>)</p>
-      </div>
-    </div>
-  <% else %>
-    <script> localStorage.removeItem('request_shell_access'); </script>
-    <table class="table virtual-machines-table">
-      <colgroup>
-        <col style="width: 25%" />
-        <col style="width: 25%" />
-        <col style="width: 50%" />
-      </colgroup>
-      <thead>
-        <tr>
-          <th> Host name </th>
-          <th> Login name </th>
-          <th> Command line </th>
-          <% if Rails.configuration.Services.WebShell.ExternalURL != URI("") %>
-            <th> Web shell</th>
-          <% end %>
-        </tr>
-      </thead>
-      <tbody>
-        <% @my_virtual_machines.andand.each do |vm| %>
-          <tr>
-            <td style="word-break:break-all;">
-              <%= vm[:hostname] %>
-            </td>
-            <td style="word-break:break-all;">
-              <%= @my_vm_logins[vm[:uuid]].andand.compact.andand.join(", ") %>
-            </td>
-            <td style="word-break:break-all;">
-              <% if @my_vm_logins[vm[:uuid]] %>
-                <% @my_vm_logins[vm[:uuid]].each do |login| %>
-                  <code>ssh&nbsp;<%= login %>@<%= vm[:hostname] %><%=Rails.configuration.Workbench.SSHHelpHostSuffix%></code>
-                <% end %>
-              <% end %>
-            </td>
-            <% if Rails.configuration.Services.WebShell.ExternalURL != URI("") %>
-              <td>
-                <% @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 %><br />
-                  <% end %>
-                <% end %>
-              </td>
-            <% end %>
-          </tr>
-        <% end %>
-      </tbody>
-    </table>
-  <% end %>
-</div>
-</div>
-
-<p>In order to access virtual machines using SSH, <%= link_to ssh_keys_user_path(current_user) do%>add an SSH key to your account<%end%>.</p>
-
-<%= raw(Rails.configuration.Workbench.SSHHelpPageHTML) %>