[ARVADOS] created: 1.3.0-385-g408e81ed6
Git user
git at public.curoverse.com
Fri Feb 22 16:45:06 EST 2019
at 408e81ed610fa238229150e4a47f457139fcf867 (commit)
commit 408e81ed610fa238229150e4a47f457139fcf867
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date: Fri Feb 22 18:44:37 2019 -0300
14794: Adds Workbench2 menu item.
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>
diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb
index b017b4a29..c1dc15fa9 100644
--- a/apps/workbench/app/views/layouts/body.html.erb
+++ b/apps/workbench/app/views/layouts/body.html.erb
@@ -83,6 +83,18 @@ SPDX-License-Identifier: AGPL-3.0 %>
</li>
<% end %>
<li role="menuitem">
+ <%
+ protocol, hostname = arvados_api_client.discovery[:workbenchUrl].split("://")
+ workbench2_url = "#{protocol}://workbench2.#{hostname.split(".")[1..-1].join(".")}"
+ %>
+ <form action="<%= workbench2_url %>/token" method="GET">
+ <input type="hidden" name="api_token" value="<%= Thread.current[:arvados_api_token] %>">
+ <button role="menuitem" type="submit">
+ <i class="fa fa-lg fa-share-square fa-fw"></i> Go to new Workbench
+ </button>
+ </form>
+ </li>
+ <li role="menuitem">
<%= link_to virtual_machines_user_path(current_user), role: 'menu-item' do %>
<i class="fa fa-lg fa-terminal fa-fw"></i> Virtual machines
<% end %>
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list