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>
21 <% if current_user.is_active %>
23 <form class="navbar-form" role="search"
30 action_href: url_for(controller: :actions, action: :show),
32 action_data: {selection_param: 'uuid', success: 'redirect-to-created-object', copy_from_search_box: true}.to_json)
34 <div class="input-group" style="width: 220px">
35 <input type="text" class="form-control" placeholder="search">
36 <a class="input-group-addon"><span class="glyphicon glyphicon-search"></span></a>
42 <li class="dropdown notification-menu">
43 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="notifications-menu">
44 <span class="badge badge-alert notification-count"><%= @notification_count %></span>
45 <%= current_user.email %> <span class="caret"></span>
47 <ul class="dropdown-menu" role="menu">
48 <li role="presentation" class="dropdown-header">
51 <% if current_user.is_active %>
52 <li role="menuitem"><a href="/manage_account" role="menuitem"><i class="fa fa-key fa-fw"></i> Manage account</a></li>
53 <% if Rails.configuration.user_profile_form_fields %>
54 <li role="menuitem"><a href="/users/<%=current_user.uuid%>/profile" role="menuitem"><i class="fa fa-key fa-fw"></i> Manage profile</a></li>
56 <li role="presentation" class="divider"></li>
58 <li role="menuitem"><a href="<%= logout_path %>" role="menuitem"><i class="fa fa-sign-out fa-fw"></i> Log out</a></li>
59 <% if current_user.is_active and
60 (@notifications || []).length > 0 %>
61 <li role="presentation" class="divider"></li>
62 <% @notifications.each_with_index do |n, i| %>
63 <% if i > 0 %><li class="divider"></li><% end %>
64 <li class="notification"><%= n.call(self) %></li>
70 <% if current_user.is_admin %>
72 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="system-menu">
73 <span class="fa fa-lg fa-gear"></span>
75 <ul class="dropdown-menu" role="menu">
76 <li role="presentation" class="dropdown-header">
79 <li role="menuitem"><a href="/repositories">
80 <i class="fa fa-lg fa-code-fork fa-fw"></i> Repositories
82 <li role="menuitem"><a href="/virtual_machines">
83 <i class="fa fa-lg fa-terminal fa-fw"></i> Virtual machines
85 <li role="menuitem"><a href="/authorized_keys">
86 <i class="fa fa-lg fa-key fa-fw"></i> SSH keys
88 <li role="menuitem"><a href="/api_client_authorizations">
89 <i class="fa fa-lg fa-ticket fa-fw"></i> API tokens
91 <li role="menuitem"><a href="/links">
92 <i class="fa fa-lg fa-arrows-h fa-fw"></i> Links
94 <li role="menuitem"><a href="/users">
95 <i class="fa fa-lg fa-user fa-fw"></i> Users
97 <li role="menuitem"><a href="/groups">
98 <i class="fa fa-lg fa-users fa-fw"></i> Groups
100 <li role="menuitem"><a href="/nodes">
101 <i class="fa fa-lg fa-cloud fa-fw"></i> Compute nodes
103 <li role="menuitem"><a href="/keep_services">
104 <i class="fa fa-lg fa-exchange fa-fw"></i> Keep services
106 <li role="menuitem"><a href="/keep_disks">
107 <i class="fa fa-lg fa-hdd-o fa-fw"></i> Keep disks
113 <li><a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
116 <li class="dropdown help-menu">
117 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="arv-help">
118 <span class="fa fa-lg fa-question-circle"></span>
120 <ul class="dropdown-menu">
121 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> Tutorials and User guide'), "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %></li>
122 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> API Reference'), "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %></li>
123 <li><%= link_to raw('<i class="fa fa-book fa-fw"></i> SDK Reference'), "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %></li>
124 <li role="presentation" class="divider"></li>
125 <li> <%= link_to report_issue_popup_path(popup_type: 'version', current_location: request.url, current_path: request.fullpath, action_method: 'post'),
126 {class: 'report-issue-modal-window', :remote => true, return_to: request.url} do %>
127 <i class="fa fa-fw fa-support"></i> Show version / debugging info ...
130 <li> <%= link_to report_issue_popup_path(popup_type: 'report', current_location: request.url, current_path: request.fullpath, action_method: 'post'),
131 {class: 'report-issue-modal-window', :remote => true, return_to: request.url} do %>
132 <i class="fa fa-fw fa-support"></i> Report a problem ...
138 </div><!-- /.navbar-collapse -->
141 <% if current_user.andand.is_active %>
142 <nav class="navbar navbar-default breadcrumbs" role="navigation">
143 <ul class="nav navbar-nav navbar-left">
146 <i class="fa fa-lg fa-fw fa-dashboard"></i>
150 <li class="dropdown">
151 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="projects-menu">
153 <span class="caret"></span>
155 <ul class="dropdown-menu" role="menu">
156 <%= render partial: "projects_tree_menu", locals: {
157 :project_link_to => Proc.new do |pnode, &block|
158 link_to(project_path(pnode[:object].uuid),
159 data: { 'object-uuid' => pnode[:object].uuid,
163 :top_button => Proc.new do %>
164 <% link_to projects_path, method: 'post', class: 'btn btn-xs btn-default pull-right' do %>
165 <i class="fa fa-plus"></i> New project
171 <% if @name_link or @object %>
172 <li class="nav-separator">
173 <i class="fa fa-lg fa-angle-double-right"></i>
176 <%= link_to project_path(current_user.uuid) do %>
180 <% project_breadcrumbs.each do |p| %>
181 <li class="nav-separator">
182 <i class="fa fa-lg fa-angle-double-right"></i>
185 <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
193 <div id="page-wrapper">
198 <%= yield :footer_html %>
200 <div class="modal-container"></div>
201 <div id="report-issue-modal-window"></div>