+++ /dev/null
-<%# Copyright (C) The Arvados Authors. All rights reserved.
-
-SPDX-License-Identifier: AGPL-3.0 %>
-
-<!DOCTYPE html>
-<html lang="en" ng-app="Workbench">
-<head>
- <meta charset="utf-8">
- <title>
- <% if content_for? :page_title %>
- <%= yield :page_title %> / <%= Rails.configuration.Workbench.SiteName %>
- <% else %>
- <%= Rails.configuration.Workbench.SiteName %>
- <% end %>
- </title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" href="/favicon.ico" type="image/x-icon">
- <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
- <meta name="description" content="">
- <meta name="author" content="">
- <% if current_user %>
- <% content_for :js do %>
- window.defaultSession = <%=raw({baseURL: Rails.configuration.Services.Controller.ExternalURL.to_s.sub(/\/*$/,'/'), token: Thread.current[:arvados_api_token], user: current_user}.to_json)%>
- <% end %>
- <% end %>
- <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
- <meta name="arv-websocket-url" content="<%=$arvados_api_client.discovery[:websocketUrl]%>?api_token=<%=Thread.current[:arvados_api_token]%>">
- <% end %>
- <meta name="robots" content="NOINDEX, NOFOLLOW">
-
- <%# Feature #5645: Add open graph meta tags to generate this page's
- social graph that search engines can use. http://ogp.me/ %>
- <meta property="og:type" content="article" />
- <meta property="og:url" content="<%= request.url %>" />
- <meta property="og:site_name" content="<%= Rails.configuration.Workbench.SiteName %>" />
- <% if defined?(@object) && @object %>
- <% if @object.respond_to?(:name) and @object.name.present? %>
- <meta property="og:title" content="<%= @object.name%>" />
- <% end %>
- <% if (@object.respond_to?(:description) rescue nil) and @object.description.present? %>
- <meta property="og:description" content="<%= @object.description%>" />
- <% end %>
- <% end %>
- <%# Done adding open graph meta tags %>
-
- <%= 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.Services.Controller.ExternalURL.to_s.sub(/\/*$/,'/') + 'discovery/v1/apis/arvados/v1/rest' %>');
- <%= yield :js %>
- <% end %>
- <style>
- <%= yield :css %>
- body {
- min-height: 100%;
- height: 100%;
- }
-
- @media (max-width: 979px) { body { padding-top: 0; } }
-
- @media (max-width: 767px) {
- .breadcrumbs {
- padding-top: 0;
- }
- }
- </style>
- <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
- <%= piwik_tracking_tag if (PiwikAnalytics.configuration.url != 'localhost' rescue false) %>
-</head>
-<body>
-<%= render template: 'layouts/body' %>
-<%= javascript_tag do %>
-<%= yield :footer_js %>
-<% end %>
-</body>
-</html>