Merge branch '4388-workbench-update' closes #4388
[arvados.git] / apps / workbench / app / views / layouts / application.html.erb
1 <!DOCTYPE html>
2 <html>
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   <%= stylesheet_link_tag    "application", :media => "all" %>
22   <%= javascript_include_tag "application" %>
23   <%= csrf_meta_tags %>
24   <%= yield :head %>
25   <%= javascript_tag do %>
26   <%= yield :js %>
27   <% end %>
28   <style>
29     <%= yield :css %>
30     body {
31     min-height: 100%;
32     height: 100%;
33     }
34
35     @media (max-width: 979px) { body { padding-top: 0; } }
36
37     @media (max-width: 767px) {
38     .breadcrumbs {
39     display: none;
40     }
41     }
42   </style>
43   <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
44   <%= piwik_tracking_tag if (PiwikAnalytics.configuration.url != 'localhost' rescue false) %>
45 </head>
46 <body>
47 <%= render template: 'layouts/body' %>
48 <%= javascript_tag do %>
49 <%= yield :footer_js %>
50 <% end %>
51 </body>
52 </html>