X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c10061b6de6b85e7c445723a0f32a717ee76fe85..e522f0285d8214484d09e9342c97a1b97d7768c5:/apps/workbench/app/views/users/welcome.html.erb diff --git a/apps/workbench/app/views/users/welcome.html.erb b/apps/workbench/app/views/users/welcome.html.erb index 8d3e42e4e3..92fd6dad46 100644 --- a/apps/workbench/app/views/users/welcome.html.erb +++ b/apps/workbench/app/views/users/welcome.html.erb @@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0 %> }).then(function(resp) { if (!resp.ok) { resp.json().then(function(respj) { - document.getElementById('login-authenticate-error').innerHTML = `

${respj.errors[0]}

`; + document.getElementById('login-authenticate-error').innerHTML = "

"+respj.errors[0]+"

"; }); return; } @@ -47,18 +47,9 @@ SPDX-License-Identifier: AGPL-3.0 %> <%= raw(Rails.configuration.Workbench.WelcomePageHTML) %> <% case %> - <% when Rails.configuration.Login.Google.Enable %> - <% when Rails.configuration.Login.OpenIDConnect.Enable %> - <% when Rails.configuration.Login.SSO.Enable %> -
- <%= link_to arvados_api_client.arvados_login_url(return_to: request.url), class: "btn btn-primary" do %> - Log in to <%= Rails.configuration.Workbench.SiteName %> - - <% end %> -
- <% when Rails.configuration.Login.PAM.Enable %> - <% when Rails.configuration.Login.LDAP.Enable %> - <% when Rails.configuration.Login.Test.Enable %> + <% when Rails.configuration.Login.PAM.Enable, + Rails.configuration.Login.LDAP.Enable, + Rails.configuration.Login.Test.Enable %>

username oninput="clear_authenticate_error()">

" id="login-return-to">

- +
+ <% else %> +
+ <%= link_to arvados_api_client.arvados_login_url(return_to: request.url), class: "btn btn-primary" do %> + Log in to <%= Rails.configuration.Workbench.SiteName %> + + <% end %> +
<% end %>