X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6f6235983d91e0b9fb5660d0a2825f510bbdac73..a9b4a906124081439326fedc1a1e73fae9c2f40b:/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 265256596b..cdc47c1716 100644
--- a/apps/workbench/app/views/layouts/application.html.erb
+++ b/apps/workbench/app/views/layouts/application.html.erb
@@ -1,5 +1,5 @@
-
+
@@ -14,11 +14,17 @@
+ <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
+
+ <% end %>
+
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= yield :head %>
<%= javascript_tag do %>
+ angular.module('Arvados').value('arvadosApiToken', '<%=Thread.current[:arvados_api_token]%>');
+ angular.module('Arvados').value('arvadosDiscoveryUri', '<%= Rails.configuration.arvados_v1_base.sub '/arvados/v1', '/discovery/v1/apis/arvados/v1/rest' %>');
<%= yield :js %>
<% end %>
+
+ <%= piwik_tracking_tag if (PiwikAnalytics.configuration.url != 'localhost' rescue false) %>
-
-
-
-
-
-
-
- <% 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_if_arvados_object @object %>
-
- -
- <%= form_tag do |f| %>
- <%= render :partial => "selection_checkbox", :locals => {:object => @object} %>
- <% end %>
-
- <% end %>
- <% end %>
- <% end %>
-
-
-
-
- -
-
-
-
- <% if current_user %>
-
-
-
-
- <% if current_user.is_active %>
-
- <% end %>
-
- -
-
-
-
- <% else -%>
- - Log in
- <% 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] %>
-
-
- <% 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" %>
-
-
-
-
- <% end %>
-
-
-
-
- <%= yield :footer_html %>
- <%= piwik_tracking_tag %>
- <%= javascript_tag do %>
- <%= yield :footer_js %>
- <% end %>
-
+<%= render template: 'layouts/body' %>
+<%= javascript_tag do %>
+<%= yield :footer_js %>
+<% end %>