% 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) %>
<%= render template: 'layouts/body' %> <%= javascript_tag do %> <%= yield :footer_js %> <% end %>