X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/00af5ad16232b856ef1f3620a4f62f0946c681a7..05e8f8b3b2f18bab495af9b40df54126a41d963f:/apps/workbench/app/views/layouts/application.html.erb
diff --git a/apps/workbench/app/views/layouts/application.html.erb b/apps/workbench/app/views/layouts/application.html.erb
index 0716bcc460..c8503268c3 100644
--- a/apps/workbench/app/views/layouts/application.html.erb
+++ b/apps/workbench/app/views/layouts/application.html.erb
@@ -14,6 +14,10 @@
+ <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
+
+ <% end %>
+
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
@@ -28,215 +32,178 @@
height: 100%;
}
- body > div.container-fluid {
- padding-top: 70px; /* 70px to make the container go all the way to the bottom of the navbar */
- }
-
- body > div.container-fluid > div.col-sm-9.col-sm-offset-3 {
- overflow: auto;
- }
-
@media (max-width: 979px) { body { padding-top: 0; } }
- .navbar .nav li.nav-separator > span.glyphicon.glyphicon-arrow-right {
- padding-top: 1.25em;
- }
-
- /* Setting the height needs to be fixed with javascript. */
- .dropdown-menu {
- padding-right: 20px;
- max-height: 440px;
- width: 400px;
- overflow-y: auto;
- }
-
- @media (min-width: 768px) {
- .left-nav {
- position: fixed;
- }
- }
@media (max-width: 767px) {
.breadcrumbs {
display: none;
}
}
+
-
-
-
+
+
-
-
- <% if current_user %>
- <% if content_for?(:breadcrumbs) %>
- <%= yield(:breadcrumbs) %>
- <% else %>
-
+
+
+
- <%= link_to(
- controller.model_class.to_s.pluralize.underscore.gsub('_', ' '),
- url_for({controller: params[:controller]})) %>
+
- <% if params[:action] != 'index' %>
-
-
-
-
-<%= link_to controller.breadcrumb_page_name, request.fullpath %>
-
- <% end %>
- <% end %>
- <% end %>
-
-
-
-
-
-
-
- <% if current_user %>
-
-
-
-
- <% if current_user.is_active %>
-
-
-
+
Log out
+ <% if current_user.is_active and
+ (@notifications || []).length > 0 %>
+
+ <% @notifications.each_with_index do |n, i| %>
+ <% if i > 0 %>
<% end %>
+
<%= n.call(self) %>
+ <% end %>
+ <% end %>
+
+
-
-
-
-
- <% if current_user.andand.is_active %>
-
-
-
- Dashboard
+
- <% [['Data', [['collections', 'Collections (data files)'],
- ['humans'],
- ['traits'],
- ['specimens'],
- ['links']]],
- ['Activity', [['pipeline_instances', 'Recent pipeline instances'],
- ['jobs', 'Recent jobs']]],
- ['Compute', [['pipeline_templates'],
- ['repositories', 'Code repositories'],
- ['virtual_machines']]],
- ['System', [['users'],
- ['groups'],
- ['nodes', 'Compute nodes'],
- ['keep_disks']]]].each do |j| %>
- <%= j[0] %>
-
- <% j[1].each do |k| %>
- <% unless k[0] == 'users' and !current_user.andand.is_admin %>
-
-
- <%= if k[1] then k[1] else k[0].capitalize.gsub('_', ' ') end %>
-
-
+ <% if current_user.is_active %>
+
+
+
<% end %>
+ <% else %>
+ Log in
+ <% end %>
- Help
-
- <%= link_to 'Tutorials and User guide', "#{Rails.configuration.arvados_docsite}/user", target: "_blank" %>
- <%= link_to 'API Reference', "#{Rails.configuration.arvados_docsite}/api", target: "_blank" %>
- <%= link_to 'SDK Reference', "#{Rails.configuration.arvados_docsite}/sdk", target: "_blank" %>
- <%= link_to 'Admin guide', "#{Rails.configuration.arvados_docsite}/admin", target: "_blank" %>
+
-
- <% end %>
-
-
+
+
+
+ <% if current_user.andand.is_active %>
+
+
+
+ <%= render partial: "projects_tree_menu", locals: {
+ :project_link_to => Proc.new do |pnode, &block|
+ link_to(project_path(pnode[:object].uuid), data: {object_uuid: pnode[:object].uuid, name: 'name'}, &block)
+ end,
+ :top_button => Proc.new do %>
+ <% link_to projects_path('project[owner_uuid]' => current_project_uuid), method: 'post', class: 'btn btn-xs btn-default pull-right' do %>
+ New project
+ <% end %>
+ <% end %>
+ <% } %>
+
+ <% project_breadcrumbs.each do |p| %>
+
+
+
+
+ <%= link_to(p.name, project_path(p.uuid), data: {object_uuid: p.uuid, name: 'name'}) %>
+
+ <% end %>
+
+
+ <% end %>
+
+
+ <%= yield %>
+
+ <%= yield :footer_html %>
<%= piwik_tracking_tag %>
<%= javascript_tag do %>
<%= yield :footer_js %>
<% end %>
+