1 <%# Copyright (C) The Arvados Authors. All rights reserved.
3 SPDX-License-Identifier: AGPL-3.0 %>
8 <title>Arvados API Server (<%= Rails.configuration.ClusterID %>)</title>
9 <%= stylesheet_link_tag "application" %>
10 <%= javascript_include_tag "application" %>
15 <div class="apptitle">ARVADOS</div>
16 <div>(<%= Rails.configuration.ClusterID %>)</div>
17 <div style="float:right">
19 <%= current_user.full_name %>
20 <% if current_user.is_admin %>
22 <a class="logout" href="/admin/users">Admin</a>
25 <a class="logout" href="/logout">Log out</a>
27 <!--<a class="logout" href="/auth/joshid">Log in</a>-->
30 <% if current_user and session[:real_uid] and session[:switch_back_to] and User.find(session[:real_uid].to_i).verify_userswitch_cookie(session[:switch_back_to]) %>
32 <span class="sudo-warning">Logged in as <b><%= current_user.full_name %></b>. <%= link_to "Back to #{User.find(session[:real_uid]).full_name}", switch_to_user_path(session[:real_uid]), :method => :post, :class => 'sudo-logout' %></span>
40 <div style="clear:both"></div>
42 <% if current_user or session['invite_code'] %>
44 <div style="float:right">Questions → <a href="mailto:arvados@curoverse.com">arvados@curoverse.com</a></div>
45 <div style="clear:both"></div>