X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/08123387faf00b0af64ea01f7196d8c5ca3fae1e..ee9d2efeaefb43fa77bdc567ddff0a46d3453a74:/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 b2cd097f31..91e3406f7c 100644
--- a/apps/workbench/app/views/layouts/body.html.erb
+++ b/apps/workbench/app/views/layouts/body.html.erb
@@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
- <% site_name = Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %>
+ <% site_name = Rails.configuration.Workbench.SiteName.downcase rescue Rails.application.class.parent_name %>
<% if current_user %>
<%= site_name %>
<% else %>
@@ -28,12 +28,12 @@ SPDX-License-Identifier: AGPL-3.0 %>
<% if current_user %>
<% if current_user.is_active %>
- <% if Rails.configuration.multi_site_search %>
+ <% if !Rails.configuration.Workbench.MultiSiteSearch.empty? %>
<% if current_user.is_active %>
Home project
- <% if Rails.configuration.composer_url %>
+ <% if Rails.configuration.Services.Composer.ExternalURL != URI("") %>
-
<% end %>
- <% if Rails.configuration.workbench2_url %>
+ <% if Rails.configuration.Services.Workbench2.ExternalURL != URI("") %>
<%
- wb2_url = Rails.configuration.workbench2_url
- wb2_url += '/' if wb2_url[-1] != '/'
- wb2_url += 'token'
+ wb2_url = Rails.configuration.Services.Workbench2.ExternalURL.to_s
+ if wb2_url[-1] == '/'
+ wb2_url = wb2_url.chop
+ end
+ wb2_url += request.fullpath
%>
- <% if Rails.configuration.repositories %>
+ <% if Rails.configuration.Workbench.Repositories %>
Repositories
<% end -%>
Current token
@@ -112,7 +113,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
<% end %>
Link account
- <% if Rails.configuration.user_profile_form_fields %>
+ <% if !Rails.configuration.Workbench.UserProfileFormFields.empty? %>
Manage profile
<% end %>
<% end %>
@@ -138,7 +139,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
- <% if Rails.configuration.repositories %>
+ <% if Rails.configuration.Workbench.Repositories %>
Repositories
@@ -161,20 +162,14 @@ SPDX-License-Identifier: AGPL-3.0 %>
Groups
-
- Compute nodes
-
Keep services
-
- Keep disks
-
<% end %>
<% else %>
- <% if Rails.configuration.anonymous_user_token and Rails.configuration.enable_public_projects_page %>
+ <% if !Rails.configuration.Users.AnonymousUserToken.empty? and Rails.configuration.Workbench.EnablePublicProjectsPage %>
<%= link_to 'Browse public projects', "/projects/public" %>
<% end %>
- <% if Rails.configuration.enable_getting_started_popup %>
+ <% if Rails.configuration.Workbench.EnableGettingStartedPopup %>
<%= link_to raw(' Getting Started ...'), "#",
{'data-toggle' => "modal", 'data-target' => '#getting-started-modal-window'} %>
<% end %>
- <% if Rails.configuration.arvados_public_data_doc_url %>
- <%= link_to raw(' Public Pipelines and Data sets'), "#{Rails.configuration.arvados_public_data_doc_url}", target: "_blank" %>
+ <% if !Rails.configuration.Workbench.ArvadosPublicDataDocURL.empty? %>
+ <%= link_to raw(' Public Pipelines and Data sets'), "#{Rails.configuration.Workbench.ArvadosPublicDataDocURL}", target: "_blank" %>
<% end %>
- <%= link_to raw(' Tutorials and User guide'), "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %>
- <%= link_to raw(' API Reference'), "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %>
- <%= link_to raw(' SDK Reference'), "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %>
+ <%= link_to raw(' Tutorials and User guide'), "#{Rails.configuration.Workbench.ArvadosDocsite}/user", target: "_blank" %>
+ <%= link_to raw(' API Reference'), "#{Rails.configuration.Workbench.ArvadosDocsite}/api", target: "_blank" %>
+ <%= link_to raw(' SDK Reference'), "#{Rails.configuration.Workbench.ArvadosDocsite}/sdk", target: "_blank" %>
<%= link_to report_issue_popup_path(popup_type: 'version', current_location: request.url, current_path: request.fullpath, action_method: 'post'),
{class: 'report-issue-modal-window', remote: true, return_to: request.url} do %>
@@ -250,6 +245,23 @@ SPDX-License-Identifier: AGPL-3.0 %>
<% end %>
<% end %>
+ <% if current_user.andand.is_active %>
+
+ <% end %>
+
<%= render partial: 'browser_unsupported' %><%# requires JS support below %>
<%= render partial: 'getting_started/getting_started_popup' %>
@@ -264,7 +276,7 @@ SPDX-License-Identifier: AGPL-3.0 %>
-<% if Rails.configuration.enable_getting_started_popup and current_user and !current_user.prefs[:getting_started_shown] and
+<% if Rails.configuration.Workbench.EnableGettingStartedPopup and current_user and !current_user.prefs[:getting_started_shown] and
!request.url.include?("/profile") and
!request.url.include?("/user_agreements") and
!request.url.include?("/inactive")%>