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>
28 <% 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]) %>
30 <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>
38 <div style="clear:both"></div>
40 <% if current_user or session['invite_code'] %>
42 <div style="clear:both"></div>