8784: Fix test for latest firefox.
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
1 <!DOCTYPE html>
2 <html ng-app="Workbench">
3 <head>
4   <meta charset="utf-8">
5   <title>
6     <% if content_for? :page_title %>
7     <%= yield :page_title %> / <%= Rails.configuration.site_name %>
8     <% else %>
9     <%= Rails.configuration.site_name %>
10     <% end %>
11   </title>
12   <meta name="viewport" content="width=device-width, initial-scale=1.0">
13   <link rel="icon" href="/favicon.ico" type="image/x-icon">
14   <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
15   <meta name="description" content="">
16   <meta name="author" content="">
17   <% if current_user and $arvados_api_client.discovery[:websocketUrl] %>
18   <meta name="arv-websocket-url" content="<%=$arvados_api_client.discovery[:websocketUrl]%>?api_token=<%=Thread.current[:arvados_api_token]%>">
19   <% end %>
20   <meta name="robots" content="NOINDEX, NOFOLLOW">
21
22   <%# Feature #5645: Add open graph meta tags to generate this page's
23       social graph that search engines can use. http://ogp.me/ %>
24   <meta property="og:type" content="article" />
25   <meta property="og:url" content="<%= request.url %>" />
26   <meta property="og:site_name" content="<%= Rails.configuration.site_name %>" />
27   <% if @object %>
28     <% if @object.respond_to?(:name) and @object.name.present? %>
29       <meta property="og:title" content="<%= @object.name%>" />
30     <% end %>
31     <% if (@object.respond_to?(:description) rescue nil) and @object.description.present? %>
32       <meta property="og:description" content="<%= @object.description%>" />
33     <% end %>
34   <% end %>
35   <%# Done adding open graph meta tags %>
36
37   <%= stylesheet_link_tag    "application", :media => "all" %>
38   <%= javascript_include_tag "application" %>
39   <%= csrf_meta_tags %>
40   <%= yield :head %>
41   <%= javascript_tag do %>
42     angular.module('Arvados').value('arvadosApiToken', '<%=Thread.current[:arvados_api_token]%>');
43     angular.module('Arvados').value('arvadosDiscoveryUri', '<%= Rails.configuration.arvados_v1_base.sub '/arvados/v1', '/discovery/v1/apis/arvados/v1/rest' %>');
44   <%= yield :js %>
45   <% end %>
46   <style>
47     <%= yield :css %>
48     body {
49     min-height: 100%;
50     height: 100%;
51     }
52
53     @media (max-width: 979px) { body { padding-top: 0; } }
54
55     @media (max-width: 767px) {
56       .breadcrumbs {
57         padding-top: 0;
58       }
59     }
60   </style>
61   <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
62   <%= piwik_tracking_tag if (PiwikAnalytics.configuration.url != 'localhost' rescue false) %>
63 </head>
64 <body>
65 <%= render template: 'layouts/body' %>
66 <%= javascript_tag do %>
67 <%= yield :footer_js %>
68 <% end %>
69 </body>
70 </html>