Merge branch '16392-url-trailing-slash'
[arvados.git] / services / api / app / views / user_notifier / account_is_setup.text.erb
index 8f9e05869d1b4d0e2fd9f6ac5a608cad128edda0..50d164bfa1e8493cef0b9d733062f6cfb4c8fbb6 100644 (file)
@@ -1,12 +1,16 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% if not @user.full_name.empty? -%>
 <%= @user.full_name %>,
 <% else -%>
 Hi there,
 <% end -%>
 
-Your Arvados shell account has been set up. Please visit the virtual machines page <% if Rails.configuration.workbench_address %>at
+Your Arvados shell account has been set up. Please visit the virtual machines page <% if Rails.configuration.Services.Workbench1.ExternalURL %>at
 
-  <%= Rails.configuration.workbench_address %>users/<%= @user.uuid%>/virtual_machines <% else %><% end %>
+  <%= Rails.configuration.Services.Workbench1.ExternalURL %><%= "/" if !Rails.configuration.Services.Workbench1.ExternalURL.to_s.end_with?("/") %>users/<%= @user.uuid%>/virtual_machines <% else %><% end %>
 
 for connection instructions.