Sha256: 5f808bd7fa3fc7fe9fdad9376de99fce21c0d3bb23715d882f07ca2fd7c93acb

Contents?: true

Size: 1.72 KB

Versions: 3

Compression:

Stored size: 1.72 KB

Contents

<!DOCTYPE html>
<html>
<head>
  <title>
    <% if @preview %>
      <%= @component_doc.name %><% if @component_examples.length == 1 %>:
        <%= @component_examples.first.name %>
      <% end %>
      preview -
    <% end %>
    <%= yield :title %><% if content_for(:title) %> - <% end %><%= GovukPublishingComponents::Config.component_guide_title %>
  </title>
  <%= stylesheet_link_tag "component_guide/application", media: "screen" %>
  <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_stylesheet}" %>

  <% if GovukPublishingComponents::Config.static %>
    <%= stylesheet_link_tag "component_guide/all_components", media: "screen" %>
    <%= stylesheet_link_tag "component_guide/all_components_print", media: "print" %>
  <% end %>

  <% if GovukPublishingComponents::Config.application_print_stylesheet %>
    <%= stylesheet_link_tag "#{GovukPublishingComponents::Config.application_print_stylesheet}", media: "print" %>
  <% end %>
  <%= javascript_include_tag "component_guide/application" %>
  <%= javascript_include_tag "#{GovukPublishingComponents::Config.application_javascript}" %>
  <%= csrf_meta_tags %>
</head>
<body class="<%= 'hide-header-and-footer' if @preview %>">
  <% unless @preview %>
    <div class="header-proposition">
      <div class="content">
        <nav id="proposition-menu" role="navigation">
          <%= link_to GovukPublishingComponents::Config.component_guide_title, component_guide_path, id: 'proposition-name' %>
        </nav>
      </div>
    </div>

    <main id="wrapper" class="govuk-component-guide-wrapper">
    <%= render 'govuk_component/breadcrumbs', breadcrumbs: @guide_breadcrumbs  %>
  <% else %>
    <main id="wrapper">
  <% end %>

      <%= yield %>
    </main>
</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
govuk_publishing_components-7.3.0 app/views/layouts/govuk_publishing_components/application.html.erb
govuk_publishing_components-7.2.0 app/views/layouts/govuk_publishing_components/application.html.erb
govuk_publishing_components-7.1.0 app/views/layouts/govuk_publishing_components/application.html.erb