6 <% if content_for? :page_title %>
7 <%= yield :page_title %>
9 <%= Rails.configuration.site_name %>
12 <meta name="viewport" content="width=device-width, initial-scale=1.0">
13 <link rel="icon" href="/favicon.ico" type="image/x-icon">
14 <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
15 <meta name="description" content="">
16 <meta name="author" content="">
17 <%= stylesheet_link_tag "application", :media => "all" %>
18 <%= javascript_include_tag "application" %>
21 <%= javascript_tag do %>
26 padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
28 @media (max-width: 979px) { body { padding-top: 0; } }
33 <div class="navbar navbar-inverse navbar-fixed-top">
34 <div class="navbar-inner">
35 <div class="container">
36 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
37 <span class="icon-bar"></span>
38 <span class="icon-bar"></span>
39 <span class="icon-bar"></span>
41 <a class="brand" href="/"><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></a>
42 <div class="nav-collapse collapse">
43 <% if current_user.andand.is_active %>
46 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
47 Access <b class="caret"></b>
49 <ul class="dropdown-menu">
50 <li><%= link_to 'Keys', authorized_keys_path %></li>
51 <li><%= link_to 'VMs', virtual_machines_path %></li>
52 <li><%= link_to 'Repositories', repositories_path %></li>
53 <li><%= link_to 'API Tokens', api_client_authorizations_path %></li>
57 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
58 Compute <b class="caret"></b>
60 <ul class="dropdown-menu">
61 <li><%= link_to 'Jobs', jobs_path %></li>
62 <li><%= link_to 'Pipeline instances', pipeline_instances_path %></li>
63 <li><%= link_to 'Pipeline templates', pipeline_templates_path %></li>
67 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
68 Data <b class="caret"></b>
70 <ul class="dropdown-menu">
71 <li><%= link_to 'Collections', collections_path %></li>
72 <li><%= link_to 'Humans', humans_path %></li>
73 <li><%= link_to 'Traits', traits_path %></li>
76 <% if current_user.is_admin %>
78 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
79 Admin <b class="caret"></b>
81 <ul class="dropdown-menu">
82 <li><%= link_to 'Users', users_path %></li>
83 <li><%= link_to 'Groups', groups_path %></li>
84 <li><%= link_to 'Nodes', nodes_path %></li>
90 <ul class="nav pull-right">
91 <% if current_user -%>
92 <li><span class="badge badge-info" style="margin: 10px auto 10px; padding-top: 4px; padding-bottom: 4px"><%= current_user.email %></span></li>
93 <li><a href="<%= logout_path %>">Log out</a></li>
95 <li><a href="<%= $arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
98 </div><!--/.nav-collapse -->
103 <div class="container">
107 </div> <!-- /container -->
109 <%= piwik_tracking_tag %>