X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0863b0df409012677f0911ac3a068195067f7c7b..e50d40423bb2bf1fa1fe940b91006bfcd1643a8c:/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 b5bf677581..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 %>
@@ -23,173 +27,26 @@
<% end %>
+
+<%= 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
-
-
- - Compute
-
-
- - History
-
-
- - 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
-
-
- <% end %>
-
-
- <% end %>
-
-
- <%= yield %>
-
-
-
-
- <%= piwik_tracking_tag %>
- <%= javascript_tag do %>
- <%= yield :footer_js %>
- <% end %>
+<%= render template: 'layouts/body' %>
+<%= javascript_tag do %>
+<%= yield :footer_js %>
+<% end %>