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 <%= stylesheet_link_tag "application", :media => "all" %>
18 <%= javascript_include_tag "application" %>
21 <%= javascript_tag do %>
31 body > div.container-fluid {
32 padding-top: 70px; /* 70px to make the container go all the way to the bottom of the navbar */
35 @media (max-width: 979px) { body { padding-top: 0; } }
37 .navbar .nav li.nav-separator > span.glyphicon.glyphicon-arrow-right {
41 @media (max-width: 767px) {
47 <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
51 <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
52 <div class="navbar-header">
53 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
54 <span class="sr-only">Toggle navigation</span>
55 <span class="icon-bar"></span>
56 <span class="icon-bar"></span>
57 <span class="icon-bar"></span>
59 <a class="navbar-brand" href="/"><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></a>
62 <div class="collapse navbar-collapse">
63 <% if current_user.andand.is_active %>
64 <ul class="nav navbar-nav side-nav">
66 <li class="<%= 'arvados-nav-active' if params[:action] == 'home' %>">
67 <a href="/"><i class="fa fa-lg fa-dashboard fa-fw"></i> Dashboard</a>
71 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-lg fa-hand-o-up fa-fw"></i> Help <b class="caret"></b></a>
72 <ul class="dropdown-menu">
73 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> Tutorials and User guide'), "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %></li>
74 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> API Reference'), "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %></li>
75 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> SDK Reference'), "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %></li>
80 <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-lg fa-folder-o fa-fw"></i> Folders <b class="caret"></b></a>
81 <ul class="dropdown-menu">
82 <li><%= link_to raw('<i class="fa fa-plus fa-fw"></i> Create new folder'), folders_path, method: :post %></li>
83 <% @my_top_level_folders.call.each do |folder| %>
84 <li><%= link_to raw('<i class="fa fa-folder-open fa-fw"></i> ') + folder.name, folder_path(folder) %></li>
86 <li><a href="/folders">
87 <i class="fa fa-ellipsis-h fa-fw"></i> Show all folders
91 <li><a href="/collections">
92 <i class="fa fa-lg fa-briefcase fa-fw"></i> Collections (data files)
94 <li><a href="/pipeline_instances">
95 <i class="fa fa-lg fa-tasks fa-fw"></i> Pipeline instances
97 <li><a href="/pipeline_templates">
98 <i class="fa fa-lg fa-gears fa-fw"></i> Pipeline templates
101 <li><a href="/repositories">
102 <i class="fa fa-lg fa-code-fork fa-fw"></i> Repositories
104 <li><a href="/virtual_machines">
105 <i class="fa fa-lg fa-cloud fa-fw"></i> Virtual machines
107 <li><a href="/humans">
108 <i class="fa fa-lg fa-male fa-fw"></i> Humans
110 <li><a href="/specimens">
111 <i class="fa fa-lg fa-flask fa-fw"></i> Specimens
113 <li><a href="/traits">
114 <i class="fa fa-lg fa-clipboard fa-fw"></i> Traits
116 <li><a href="/links">
117 <i class="fa fa-lg fa-arrows-h fa-fw"></i> Links
119 <% if current_user.andand.is_admin %>
120 <li><a href="/users">
121 <i class="fa fa-lg fa-user fa-fw"></i> Users
124 <li><a href="/groups">
125 <i class="fa fa-lg fa-users fa-fw"></i> Groups
127 <li><a href="/nodes">
128 <i class="fa fa-lg fa-cogs fa-fw"></i> Compute nodes
130 <li><a href="/keep_disks">
131 <i class="fa fa-lg fa-hdd-o fa-fw"></i> Keep disks
136 <ul class="nav navbar-nav navbar-left breadcrumbs">
137 <% if current_user %>
138 <% if content_for?(:breadcrumbs) %>
139 <%= yield(:breadcrumbs) %>
141 <li class="nav-separator"><span class="glyphicon glyphicon-arrow-right"></span></li>
144 controller.controller_name.humanize.downcase,
145 url_for({controller: params[:controller]})) %>
147 <% if params[:action] != 'index' %>
148 <li class="nav-separator">
149 <span class="glyphicon glyphicon-arrow-right"></span>
152 <%= link_to_if_arvados_object @object %>
154 <li style="padding: 14px 0 14px">
155 <%= form_tag do |f| %>
156 <%= render :partial => "selection_checkbox", :locals => {:object => @object} %>
164 <ul class="nav navbar-nav navbar-right">
167 <a><i class="rotating loading glyphicon glyphicon-refresh"></i></a>
170 <% if current_user %>
171 <!-- XXX placeholder for this when search is implemented
173 <form class="navbar-form" role="search">
174 <div class="input-group" style="width: 220px">
175 <input type="text" class="form-control" placeholder="search">
176 <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
182 <li class="dropdown notification-menu">
183 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="collections-menu">
184 <span class="glyphicon glyphicon-paperclip"></span>
185 <span class="badge" id="persistent-selection-count"></span>
186 <span class="caret"></span>
188 <ul class="dropdown-menu" role="menu" id="persistent-selection-list">
189 <%= form_tag '/actions' do %>
190 <%= hidden_field_tag 'uuid', @object.andand.uuid %>
191 <div id="selection-form-content"></div>
196 <% if current_user.is_active %>
197 <li class="dropdown notification-menu">
198 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="notifications-menu">
199 <span class="glyphicon glyphicon-envelope"></span>
200 <span class="badge badge-alert notification-count"><%= @notification_count %></span>
201 <span class="caret"></span>
203 <ul class="dropdown-menu" role="menu">
204 <% if (@notifications || []).length > 0 %>
205 <% @notifications.each_with_index do |n, i| %>
206 <% if i > 0 %><li class="divider"></li><% end %>
207 <li class="notification"><%= n.call(self) %></li>
210 <li class="notification empty">No notifications.</li>
216 <li class="dropdown">
217 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="user-menu">
218 <span class="glyphicon glyphicon-user"></span><span class="caret"></span>
220 <ul class="dropdown-menu" role="menu">
221 <li role="presentation" class="dropdown-header"><%= current_user.email %></li>
222 <% if current_user.is_active %>
223 <li role="presentation" class="divider"></li>
224 <li role="presentation"><a href="/authorized_keys" role="menuitem"><i class="fa fa-key fa-fw"></i> Manage ssh keys</a></li>
225 <li role="presentation"><a href="/api_client_authorizations" role="menuitem"><i class="fa fa-ticket fa-fw"></i> Manage API tokens</a></li>
226 <li role="presentation" class="divider"></li>
228 <li role="presentation"><a href="<%= logout_path %>" role="menuitem"><i class="fa fa-sign-out fa-fw"></i> Log out</a></li>
232 <li><a href="<%= $arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
235 </div><!-- /.navbar-collapse -->
238 <div id="page-wrapper">
245 <%= yield :footer_html %>
246 <%= piwik_tracking_tag %>
247 <%= javascript_tag do %>
248 <%= yield :footer_js %>