X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0f644e242ef37c911ad3dc25aca8135c339de349..408e81ed610fa238229150e4a47f457139fcf867:/apps/workbench/app/views/layouts/body.html.erb
diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb
index 8073615c31..c1dc15fa91 100644
--- a/apps/workbench/app/views/layouts/body.html.erb
+++ b/apps/workbench/app/views/layouts/body.html.erb
@@ -28,24 +28,36 @@ SPDX-License-Identifier: AGPL-3.0 %>
<% if current_user %>
<% if current_user.is_active %>
-
-
-
+ <% if Rails.configuration.multi_site_search %>
+
+
+
+ <% end %>
+
+
+
<% end %>
<% if current_user.is_active %>
Home project
-
-
- <%= link_to virtual_machines_user_path(current_user), role: 'menu-item' do %>
- Virtual machines
+ <% if Rails.configuration.composer_url %>
+
+
+
<% end %>
+
+ <%
+ protocol, hostname = arvados_api_client.discovery[:workbenchUrl].split("://")
+ workbench2_url = "#{protocol}://workbench2.#{hostname.split(".")[1..-1].join(".")}"
+ %>
+
- <%= link_to repositories_user_path(current_user), role: 'menu-item' do %>
- Repositories
+ <%= link_to virtual_machines_user_path(current_user), role: 'menu-item' do %>
+ Virtual machines
<% end %>
+ <% if Rails.configuration.repositories %>
+ Repositories
+ <% end -%>
Current token
<%= link_to ssh_keys_user_path(current_user), role: 'menu-item' do %>
SSH keys
<% end %>
-
-
+
+ Link account
<% if Rails.configuration.user_profile_form_fields %>
Manage profile
<% end %>
@@ -104,9 +135,11 @@ SPDX-License-Identifier: AGPL-3.0 %>
+ <% if Rails.configuration.repositories %>
Repositories
+ <% end -%>
Virtual machines