Use one client per thread, via a factory method, instead of a global.
[arvados.git] / apps / workbench / app / views / users / welcome.html.erb
1 <% content_for :breadcrumbs do raw '<!-- -->' end %>
2
3 <%= image_tag "dax.png", style: "float: left; max-width: 25%; margin-right: 2em" %>
4 <h1>Hi there!  Please log in to use <%= Rails.configuration.site_name %>.</h1>
5 <div class="row-fluid">
6   <div class="col span8" style="margin-top: 1em">
7     <div class="well clearfix">
8       <p>When you click on the button below you will be taken to a Google sign-in page.
9         After entering your information, you will be redirected back to <%= Rails.configuration.site_name %>
10         If you have never used <%= Rails.configuration.site_name %> before, logging in for the first
11         time will also create a new user account. <%= Rails.configuration.site_name %> uses your name and
12         email address from Google services only for identification, and can not access any personal information
13   beyond that.
14   </p>
15       <p>
16         <a  class="pull-right btn btn-primary" href="<%= arvados_api_client.arvados_login_url(return_to: request.url) %>">
17           Click here to log in to <%= Rails.configuration.site_name %> with a Google account</a>
18       </p>
19     </div>
20   </div>
21 </div>
22
23