1 <div id="wrapper" class="container-fluid">
2 <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
3 <div class="navbar-header">
4 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
5 <span class="sr-only">Toggle navigation</span>
6 <span class="icon-bar"></span>
7 <span class="icon-bar"></span>
8 <span class="icon-bar"></span>
10 <a class="navbar-brand" href="/" data-push=true><%= Rails.configuration.site_name.downcase rescue Rails.application.class.parent_name %></a>
13 <div class="collapse navbar-collapse">
14 <ul class="nav navbar-nav navbar-right">
17 <a><i class="rotating loading glyphicon glyphicon-refresh"></i></a>
22 <form class="navbar-form" role="search"
29 action_href: url_for(controller: :actions, action: :show),
31 action_data: {selection_param: 'uuid', success: 'redirect-to-created-object', copy_from_search_box: true}.to_json)
33 <div class="input-group" style="width: 220px">
34 <input type="text" class="form-control" placeholder="search">
35 <a class="input-group-addon"><span class="glyphicon glyphicon-search"></span></a>
40 <li class="dropdown notification-menu">
41 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="notifications-menu">
42 <span class="badge badge-alert notification-count"><%= @notification_count %></span>
43 <%= current_user.email %>
45 <ul class="dropdown-menu" role="menu">
46 <% if current_user.is_active %>
47 <li role="presentation"><a href="/manage_account" role="menuitem"><i class="fa fa-key fa-fw"></i> Manage account</a></li>
48 <li role="presentation" class="divider"></li>
50 <li role="presentation"><a href="<%= logout_path %>" role="menuitem"><i class="fa fa-sign-out fa-fw"></i> Log out</a></li>
51 <% if current_user.is_active and
52 (@notifications || []).length > 0 %>
53 <li role="presentation" class="divider"></li>
54 <% @notifications.each_with_index do |n, i| %>
55 <% if i > 0 %><li class="divider"></li><% end %>
56 <li class="notification"><%= n.call(self) %></li>
62 <li class="dropdown selection-menu">
63 <a href="#" class="dropdown-toggle" data-toggle="dropdown">
64 <span class="fa fa-lg fa-paperclip"></span>
65 <span class="badge" id="persistent-selection-count"></span>
67 <ul class="dropdown-menu" role="menu" id="persistent-selection-list">
68 <%= form_tag '/actions' do %>
69 <%= hidden_field_tag 'uuid', @object.andand.uuid %>
70 <div id="selection-form-content"></div>
75 <% if current_user.is_active %>
77 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="system-menu">
78 <span class="fa fa-lg fa-gear"></span>
80 <ul class="dropdown-menu" role="menu">
81 <li role="presentation" class="dropdown-header">
84 <% if current_user.andand.is_admin %>
85 <li role="presentation"><a href="/repositories">
86 <i class="fa fa-lg fa-code-fork fa-fw"></i> Repositories
88 <li role="presentation"><a href="/virtual_machines">
89 <i class="fa fa-lg fa-terminal fa-fw"></i> Virtual machines
91 <li role="presentation"><a href="/authorized_keys">
92 <i class="fa fa-lg fa-key fa-fw"></i> SSH keys
94 <li role="presentation"><a href="/api_client_authorizations">
95 <i class="fa fa-lg fa-ticket fa-fw"></i> API tokens
98 <li role="presentation"><a href="/links">
99 <i class="fa fa-lg fa-arrows-h fa-fw"></i> Links
101 <% if current_user.andand.is_admin %>
102 <li role="presentation"><a href="/users">
103 <i class="fa fa-lg fa-user fa-fw"></i> Users
106 <li role="presentation"><a href="/groups">
107 <i class="fa fa-lg fa-users fa-fw"></i> Groups
109 <li role="presentation"><a href="/nodes">
110 <i class="fa fa-lg fa-cloud fa-fw"></i> Compute nodes
112 <li role="presentation"><a href="/keep_services">
113 <i class="fa fa-lg fa-exchange fa-fw"></i> Keep services
115 <li role="presentation"><a href="/keep_disks">
116 <i class="fa fa-lg fa-hdd-o fa-fw"></i> Keep disks
122 <li><a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
125 <li class="dropdown help-menu">
126 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="arv-help">
127 <span class="fa fa-lg fa-question-circle"></span>
129 <ul class="dropdown-menu">
130 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> Tutorials and User guide'), "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %></li>
131 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> API Reference'), "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %></li>
132 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> SDK Reference'), "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %></li>
136 </div><!-- /.navbar-collapse -->
139 <% if current_user.andand.is_active %>
140 <nav class="navbar navbar-default breadcrumbs" role="navigation">
141 <ul class="nav navbar-nav navbar-left">
144 <i class="fa fa-lg fa-fw fa-home"></i>
148 <li class="nav-separator">
149 <i class="fa fa-lg fa-angle-double-right"></i>
151 <li class="dropdown">
152 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="projects-menu">
154 <span class="caret"></span>
156 <ul class="dropdown-menu" role="menu">
157 <%= render partial: "projects_tree_menu", locals: {
158 :project_link_to => Proc.new do |pnode, &block|
159 link_to(project_path(pnode[:object].uuid),
160 data: { 'object-uuid' => pnode[:object].uuid,
164 :top_button => Proc.new do %>
165 <% link_to projects_path, method: 'post', class: 'btn btn-xs btn-default pull-right' do %>
166 <i class="fa fa-plus"></i> New project
172 <% project_breadcrumbs.each do |p| %>
173 <li class="nav-separator">
174 <i class="fa fa-lg fa-angle-double-right"></i>
177 <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
184 <div id="page-wrapper">
189 <%= yield :footer_html %>
191 <div class="modal-container"></div>