X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/928565a23bf5ff54fb524b6c38f8e2b0f4b27725..b653d031a5dbf2a42cf81d787753e945bf3911b4:/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 f186fda148..0a309db5b5 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,21 @@
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;
+ @media (max-width: 767px) {
+ .breadcrumbs {
+ display: none;
}
-
- /* Setting the height needs to be fixed with javascript. */
- .dropdown-menu {
- padding-right: 20px;
- max-height: 440px;
- width: 400px;
- overflow-y: auto;
- }
-
- .arvados-nav-container {
- position: fixed;
- top: 70px;
- height: calc(100% - 70px);
- overflow: auto;
- z-index: 2;
- }
- .arvados-nav-active {
- background: rgb(66, 139, 202);
- }
- .arvados-nav-active a {
- color: white;
}
+
+<%= piwik_tracking_tag %>
-
-
-
-
- - <%= Rails.configuration.site_name rescue Rails.application.class.parent_name %>
- <% 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 %>
-
-
- - Dashboard
-
- <% [['Data', [['humans'],
- ['traits'],
- ['specimens'],
- ['collections', 'Files'],
- ['links', 'Metadata']]],
- ['Compute', [['pipeline_templates', 'Pipelines'],
- ['repositories', 'Code repositories'],
- ['virtual_machines']]],
- ['Activity', [['pipeline_instances', 'Recent pipelines'],
- ['jobs', 'Recent jobs']]]].each do |j| %>
- - <%= j[0] %>
-
-
- <% 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" %>
-
-
- <% if current_user.andand.is_admin %>
-
- <% [['Admin', [['users'],
- ['groups'],
- ['nodes', 'Compute nodes'],
- ['keep_disks']]]].each do |j| %>
- - <%= j[0] %>
-
-
- <% end %>
- <% end %>
-
-
- <% end %>
-
-
-
-
-
- <%= piwik_tracking_tag %>
- <%= javascript_tag do %>
- <%= yield :footer_js %>
- <% end %>
+<%= render template: 'layouts/body' %>
+<%= javascript_tag do %>
+<%= yield :footer_js %>
+<% end %>