X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0c1b35bbef95a30c78f9ac79f3d4218e1f53ab0b..2ff5dd54e5daf4dfed3dfd07d161681fc87fe8ff:/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 b78210830e..92fd6dad46 100644 --- a/apps/workbench/app/views/users/welcome.html.erb +++ b/apps/workbench/app/views/users/welcome.html.erb @@ -1,21 +1,75 @@ -<%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %> -
"+respj.errors[0]+"
"; + }); + return; + } + + var redir = document.getElementById('login-return-to').value + if (redir.indexOf('?') > 0) { + redir += '&' + } else { + redir += '?' + } + resp.json().then(function(respj) { + document.location = redir + "api_token=v2/" + respj.uuid + "/" + respj.api_token; + }); + }); + } + function clear_authenticate_error() { + document.getElementById('login-authenticate-error').innerHTML = ""; + } +<% end %> + +When you click on the button below you will be taken to a Google sign-in page. - After entering your information, you will be redirected back to <%= Rails.configuration.site_name %> - If you have never used <%= Rails.configuration.site_name %> before, logging in for the first - time will also create a new user account. <%= Rails.configuration.site_name %> uses your name and - email address from Google services only for identification, and can not access any personal information - beyond that. -
-- - Click here to log in to <%= Rails.configuration.site_name %> with a Google account -
+ + <%= raw(Rails.configuration.Workbench.WelcomePageHTML) %> + + <% case %> + <% when Rails.configuration.Login.PAM.Enable, + Rails.configuration.Login.LDAP.Enable, + Rails.configuration.Login.Test.Enable %> + + <% else %> +