6 <% if content_for? :page_title %>
7 <%= yield :page_title %> / <%= Rails.configuration.site_name %>
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 <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
18 <meta name="arv-websocket-url" content="<%=$arvados_api_client.discovery[:websocketUrl]%>?api_token=<%=Thread.current[:arvados_api_token]%>">
20 <meta name="robots" content="NOINDEX, NOFOLLOW">
21 <%= stylesheet_link_tag "application", :media => "all" %>
22 <%= javascript_include_tag "application" %>
25 <%= javascript_tag do %>
35 @media (max-width: 979px) { body { padding-top: 0; } }
37 @media (max-width: 767px) {
43 <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
46 <div id="wrapper" class="container-fluid">
47 <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
48 <div class="navbar-header">
49 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
50 <span class="sr-only">Toggle navigation</span>
51 <span class="icon-bar"></span>
52 <span class="icon-bar"></span>
53 <span class="icon-bar"></span>
55 <a class="navbar-brand" href="/"><%= Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %></a>
58 <div class="collapse navbar-collapse">
59 <ul class="nav navbar-nav navbar-right">
62 <a><i class="rotating loading glyphicon glyphicon-refresh"></i></a>
66 <!-- XXX placeholder for this when search is implemented
68 <form class="navbar-form" role="search">
69 <div class="input-group" style="width: 220px">
70 <input type="text" class="form-control" placeholder="search">
71 <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
77 <li class="dropdown notification-menu">
78 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="notifications-menu">
79 <span class="badge badge-alert notification-count"><%= @notification_count %></span>
80 <%= current_user.email %>
82 <ul class="dropdown-menu" role="menu">
83 <% if current_user.is_active %>
84 <li role="presentation"><a href="/authorized_keys" role="menuitem"><i class="fa fa-key fa-fw"></i> Manage ssh keys</a></li>
85 <li role="presentation"><a href="/api_client_authorizations" role="menuitem"><i class="fa fa-ticket fa-fw"></i> Manage API tokens</a></li>
86 <li role="presentation" class="divider"></li>
88 <li role="presentation"><a href="<%= logout_path %>" role="menuitem"><i class="fa fa-sign-out fa-fw"></i> Log out</a></li>
89 <% if current_user.is_active and
90 (@notifications || []).length > 0 %>
91 <li role="presentation" class="divider"></li>
92 <% @notifications.each_with_index do |n, i| %>
93 <% if i > 0 %><li class="divider"></li><% end %>
94 <li class="notification"><%= n.call(self) %></li>
100 <li class="dropdown selection-menu">
101 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
102 <span class="fa fa-lg fa-paperclip"></span>
103 <span class="badge" id="persistent-selection-count"></span>
105 <ul class="dropdown-menu" role="menu" id="persistent-selection-list">
106 <%= form_tag '/actions' do %>
107 <%= hidden_field_tag 'uuid', @object.andand.uuid %>
108 <div id="selection-form-content"></div>
113 <% if current_user.is_active %>
114 <li class="dropdown">
115 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="system-menu">
116 <span class="fa fa-lg fa-gear"></span>
118 <ul class="dropdown-menu" role="menu">
119 <li role="presentation" class="dropdown-header">
122 <li role="presentation"><a href="/repositories">
123 <i class="fa fa-lg fa-code-fork fa-fw"></i> Repositories
125 <li role="presentation"><a href="/virtual_machines">
126 <i class="fa fa-lg fa-terminal fa-fw"></i> Virtual machines
128 <li role="presentation"><a href="/links">
129 <i class="fa fa-lg fa-arrows-h fa-fw"></i> Links
131 <% if current_user.andand.is_admin %>
132 <li role="presentation"><a href="/users">
133 <i class="fa fa-lg fa-user fa-fw"></i> Users
136 <li role="presentation"><a href="/groups">
137 <i class="fa fa-lg fa-users fa-fw"></i> Groups
139 <li role="presentation"><a href="/nodes">
140 <i class="fa fa-lg fa-cloud fa-fw"></i> Compute nodes
142 <li role="presentation"><a href="/keep_services">
143 <i class="fa fa-lg fa-exchange fa-fw"></i> Keep services
145 <li role="presentation"><a href="/keep_disks">
146 <i class="fa fa-lg fa-hdd-o fa-fw"></i> Keep disks
152 <li><a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
155 <li class="dropdown help-menu">
156 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="arv-help">
157 <span class="fa fa-lg fa-question-circle"></span>
159 <ul class="dropdown-menu">
160 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> Tutorials and User guide'), "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %></li>
161 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> API Reference'), "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %></li>
162 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> SDK Reference'), "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %></li>
166 </div><!-- /.navbar-collapse -->
169 <% if current_user.andand.is_active %>
170 <nav class="navbar navbar-default breadcrumbs" role="navigation">
171 <ul class="nav navbar-nav navbar-left">
172 <li class="dropdown">
173 <%= render partial: "projects_tree_menu", locals: {
174 :project_link_to => Proc.new do |pnode, &block|
175 link_to(project_path(pnode[:object].uuid), data: {object_uuid: pnode[:object].uuid, name: 'name'}, &block)
177 :top_button => Proc.new do %>
178 <% link_to projects_path('project[owner_uuid]' => current_project_uuid), method: 'post', class: 'btn btn-xs btn-default pull-right' do %>
179 <i class="fa fa-plus"></i> New project
184 <% project_breadcrumbs.each do |p| %>
185 <li class="nav-separator">
186 <i class="fa fa-lg fa-angle-double-right"></i>
189 <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
196 <div id="page-wrapper">
201 <%= yield :footer_html %>
202 <%= piwik_tracking_tag %>
203 <%= javascript_tag do %>
204 <%= yield :footer_js %>
207 <div class="modal-container"></div>