18947: Remove errant uses of runsu.sh.
[arvados.git] / services / api / app / views / layouts / application.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <!DOCTYPE html>
6 <html>
7 <head>
8   <title>Arvados API Server (<%= Rails.configuration.ClusterID %>)</title>
9   <%= stylesheet_link_tag    "application" %>
10   <%= javascript_include_tag "application" %>
11   <%= csrf_meta_tags %>
12 </head>
13 <body>
14 <div id="header">
15   <div class="apptitle">ARVADOS</div>
16   <div>(<%= Rails.configuration.ClusterID %>)</div>
17   <div style="float:right">
18     <% if current_user %>
19     <%= current_user.full_name %>
20     <% if current_user.is_admin %>
21     &nbsp;&bull;&nbsp;
22     <a class="logout" href="/admin/users">Admin</a>
23     <% end %>
24     &nbsp;&bull;&nbsp;
25     <a class="logout" href="/logout">Log out</a>
26     <% end %>
27
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]) %>
29     &nbsp;&bull;&nbsp;
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>
31     <% end %>
32   </div>
33 </div>
34
35
36 <%= yield %>
37
38 <div style="clear:both"></div>
39
40 <% if current_user or session['invite_code'] %>
41 <div id="footer">
42   <div style="clear:both"></div>
43 </div>
44 <% end %>
45
46 </body>
47 </html>