<%= content_for?(:page_title) ? yield(:page_title) : "GOV.UK" %>
<% # jQuery and Bootstrap %>
<%= javascript_include_tag "govuk-admin-template" %>
<% if content_for?(:favicon) %>
<%= yield :favicon %>
<% else %>
<%= favicon_link_tag environment_style ?
"govuk_admin_template/favicon-#{environment_style}.png" : "govuk_admin_template/favicon.png"
%>
<% end %>
<%= yield :head %>
<%# CSS resets and fixes for Bootstrap 3 in IE7 %>
<%
# HTML5 and bootstrap shims, for <= IE8 support of HTML5 elements
# respond.js must come after CSS (from :head) and media queries so
# that rules and styles can be correctly calculated.
%>
class="environment-<%= environment_style %>"<% end %>>
<%= yield :body_start %>
<% if content_for?(:navbar) %>
<%= yield(:navbar) %>
<% else %>
<% if content_for?(:navbar_right) || content_for?(:navbar_items) %>
<%# Bootstrap toggle for collapsed navbar content, used at smaller widths %>
Toggle navigation
<% end %>
<%= link_to content_for?(:app_title) ? yield(:app_title) : "GOV.UK", app_home_path, :class => 'navbar-brand' %>
<% if environment_label %>
<%= environment_label %>
<% end %>
<% if content_for?(:navbar_right) || content_for?(:navbar_items) %>
<% end %>
<% end %>
<%= content_for?(:content) ? yield(:content) : yield %>
<%= yield :body_end %>
<% unless content_for?(:exclude_analytics) %>
<% if Rails.env.production? %>
<% end %>
<% end %>