Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
+<% if Rails.configuration.Login.LoginCluster.empty? %>
+
<div id="need-login" style="display: none">
<p>You are currently logged in as <b><%= Thread.current[:user].email %></b> (<%= Thread.current[:user].username%>, <%= Thread.current[:user].uuid %>) created at <b><%= Thread.current[:user].created_at%></b></p>
<div id="need-login" style="display: none">
<p>You are currently logged in as <b><%= Thread.current[:user].email %></b> (<%= Thread.current[:user].username%>, <%= Thread.current[:user].uuid %>) created at <b><%= Thread.current[:user].created_at%></b></p>
<i class="fa fa-fw fa-sign-in"></i> Use this login to access another account
</button>
<i class="fa fa-fw fa-sign-in"></i> Use this login to access another account
</button>
</div>
<div id="ready-to-link" style="display: none">
</div>
<div id="ready-to-link" style="display: none">
<input type="hidden" id="new-user-token-input" name="direction" value="<%=params[:direction]%>" />
<%= button_tag class: "btn btn-primary", id: "link-account-submit" do %>
<i class="fa fa-fw fa-link"></i> Link accounts
<input type="hidden" id="new-user-token-input" name="direction" value="<%=params[:direction]%>" />
<%= button_tag class: "btn btn-primary", id: "link-account-submit" do %>
<i class="fa fa-fw fa-link"></i> Link accounts
+
+<% else %>
+<div>
+Self-serve account linking is not supported on this cluster. Please contact your Arvados administrator.