<html>
<head>
<meta charset="utf-8">
- <title><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></title>
+ <title>
+ <% if content_for? :page_title %>
+ <%= yield :page_title %> / <%= Rails.configuration.site_name %>
+ <% else %>
+ <%= Rails.configuration.site_name %>
+ <% 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 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">
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
<%= yield :js %>
<% end %>
<style>
+ <%= yield :css %>
body {
- padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
+ min-height: 100%;
+ height: 100%;
+ }
+
+ @media (max-width: 979px) { body { padding-top: 0; } }
+
+ @media (max-width: 767px) {
+ .breadcrumbs {
+ display: none;
+ }
}
</style>
+ <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
+<%= piwik_tracking_tag %>
</head>
<body>
-
- <div class="navbar navbar-inverse navbar-fixed-top">
- <div class="navbar-inner">
- <div class="container">
- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </a>
- <a class="brand" href="/"><%= Rails.configuration.site_name rescue Rails.application.class.parent_name %></a>
- <div class="nav-collapse collapse">
- <ul class="nav">
- <% [
- [true, 'Data', collections_path],
- [true, 'Groups', groups_path],
- [true, 'Pipeline Templates', pipeline_templates_path],
- [true, 'Pipeline Instances', pipeline_instances_path],
- [true, 'Jobs', jobs_path]
- ].each do |admin_only, name, path| %>
- <% if !admin_only or (current_user and current_user.is_admin) %>
- <li<%= raw ' class="active"' if request.fullpath.index(path) %>><a href="<%= path %>"><%= name %></a></li>
- <% end %>
- <% end %>
- </ul>
- <ul class="nav pull-right">
- <% if current_user -%>
- <li><a href="<%= logout_path %>">Log out</a></li>
- <% else -%>
- <li><a href="<%= root_path %>">Log in</a></li>
- <% end -%>
- </ul>
- </div><!--/.nav-collapse -->
- </div>
- </div>
- </div>
-
- <div class="container">
-
- <%= yield %>
-
- </div> <!-- /container -->
-
+<%= render template: 'layouts/body' %>
+<%= javascript_tag do %>
+<%= yield :footer_js %>
+<% end %>
</body>
</html>