Arvados-DCO-1.1-Signed-off-by: Radhika Chippada <radhika@curoverse.com>
[arvados.git] / apps / workbench / app / views / users / welcome.html.erb
index 53b2ab8bb2354be5db1dd631f8527a985aac7cd8..b10ca8b15de8f8c6778dad98050bb978d0599de3 100644 (file)
@@ -1,44 +1,45 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% content_for :breadcrumbs do raw '<!-- -->' end %>
 
 <div class="row">
   <div class="col-sm-8 col-sm-push-4" style="margin-top: 1em">
     <div class="well clearfix">
-      <%= image_tag "dax.png", style: "width: 147px; height: 197px; max-width: 25%; margin-right: 2em", class: 'pull-left' %>
+      <%= image_tag "dax.png", style: "width: 112px; height: 150px; margin-right: 2em", class: 'pull-left' %>
 
-      <h3>Please log in.</h3>
+      <h3 style="margin-top:0">Please log in.</h3>
 
       <p>
 
         The "Log in" button below will show you a Google sign-in page.
-       After you assure Google that you want to log in here with your
-       Google account, you will be redirected back here to
-       <%= Rails.configuration.site_name %>.
+        After you assure Google that you want to log in here with your
+        Google account, you will be redirected back here to
+        <%= Rails.configuration.site_name %>.
 
       </p><p>
 
-       If you have never used <%= Rails.configuration.site_name %>
-       before, logging in for the first time will automatically
-       create a new account.
+        If you have never used <%= Rails.configuration.site_name %>
+        before, logging in for the first time will automatically
+        create a new account.
 
       </p><p>
 
         <i><%= Rails.configuration.site_name %> uses your name and
-         email address only for identification, and does not retrieve
-         any other personal information from Google.</i>
+          email address only for identification, and does not retrieve
+          any other personal information from Google.</i>
 
       </p>
-      <p>
-        <!-- <%= arvados_api_client.arvados_login_url %> -->
-        <%= form_tag(arvados_api_client.arvados_login_url(), :method => :get, :authenticity_token => false) do %>
-          <%= hidden_field_tag 'return_to', request.url %>
-          <div class="row pull-right">
-          <%= select_tag "auth_method", "<option value='google'>Google OpenID</option><option value='google_oauth2'>Google OAuth2</option>".html_safe, class: "form-control", style: "width: 15em; display: inline" %>
-         <%= button_tag class: "btn btn-primary" do %>
-            Log in to <%= Rails.configuration.site_name %> <i class="fa fa-fw fa-arrow-circle-right"></i>
+        <%# Todo: add list of external authentications providers to
+            discovery document, then generate the option list here. Right
+            now, don't provide 'auth_provider' to get the default one. %>
+        <div class="pull-right">
+          <%= link_to arvados_api_client.arvados_login_url(return_to: request.url), class: "btn btn-primary" do %>
+          Log in to <%= Rails.configuration.site_name %>
+          <i class="fa fa-fw fa-arrow-circle-right"></i>
           <% end %>
         </div>
-        <% end %>
-      </p>
     </div>
   </div>
 </div>