app/views/layouts/dashboard.html.erb
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><%= title %></title>
<%= csrf_meta_tags %>
<%= action_cable_meta_tag %>
<meta name="relative_url_root" content="<%= main_app.root_url %>" />
<meta name="revision" content="<%= revision %>" />
<meta name="env" content="<%= Rails.env %>" />
<%= render_layout_extensions("dashboard", :meta) %>
<%= yield :meta %>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js" type="text/javascript"></script>
<![endif]-->
<!-- Le styles -->
<%= stylesheet_link_tag "houston/vendor", media: "all" %>
<%= stylesheet_link_tag "houston/dashboard", media: "all" %>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<%= render_layout_extensions("dashboard", :stylesheets) %>
<%= yield :stylesheets %><%# so that Engines can hook in and add styles %>
<!-- Le fav and touch icons -->
<% unless unfurling? %>
<link rel="icon" type="image/x-icon" href="<%= ENV['RAILS_RELATIVE_URL_ROOT'] %>/favicon.png" />
<% end %>
</head>
<body class="dashboard">
<div id="container" <% if params[:zoom].to_f > 0 %> style="transform: scale(<%= params[:zoom].to_f %>); transform-origin: 50% 0; -webkit-transform: scale(<%= params[:zoom].to_f %>); -webkit-transform-origin: 50% 0; -moz-transform: scale(<%= params[:zoom].to_f %>); -moz-transform-origin: 50% 0; width: <%= (1 / params[:zoom].to_f) * 100 %>%; height: <%= (1 / params[:zoom].to_f) * 100 %>%;" <% end %>>
<%= yield -%>
</div>
<%= render_layout_extensions("dashboard", :footers) %>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<%= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" %>
<%= javascript_include_tag "houston/vendor" %>
<%= javascript_include_tag "houston/dashboard" %>
<%= render_layout_extensions("dashboard", :scripts) %>
<%= yield :javascripts %><%# so that Engines can hook in and add scripts %>
<%= google_analytics_script_tag %>
<!--
Play silence continually
This keeps the audio channel open over HDMI (at least on
our Raspberry PIs). Otherwise the first second of a sound
effect is swallowed.
-->
<audio src="/sounds/silence.mp3" autoplay loop></audio>
</body>
</html>