1. Collections Component Guide
  2. Admin layout
  3. Default
Admin layout example

Default

How it looks (preview)

<!DOCTYPE html>
<html lang="en" class="govuk-template">
  <head>
    <meta charset="utf-8" />
    <title>A page title - GOV.UK Publishing</title>
    <meta name="robots" content="noindex,nofollow,noimageindex">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-param" content="authenticity_token" />
<meta name="csrf-token" content="UIbs3rUXK5_VXzgCB2qyFFL8iI6i7xQLvBkSxpfzOGUo-y6dMTHy0jbBf9Ft_4EsGzcXVml9kdlkA2vvRFuXzw" />
    <link rel="shortcut icon" type="image/x-icon" href="/assets/collections/govuk_publishing_components/favicon-production-3d29621e53fc949f82338b9efeaeaa1a803066deef2e8e6b390c23d79c21c90b.png" />
    <link rel="stylesheet" media="screen" href="/assets/collections/application-e12de8afcb2dea51bb10bfd5170f764bfbdef25f71e1cf87a2ac814f0f7865ee.css" />
    <link rel="stylesheet" media="print" href="/assets/collections/print-f23cb8ccbf886494b66cbdb4055804d044ddbec2d80f7f05f3f6a4c18aef696b.css" />
    <script src="/assets/collections/govuk_publishing_components/vendor/modernizr-a694b2e4420935261ee2a50f5702d93197f5207f75a24a6ecdae2bfea4a160a3.js"></script>
    
  </head>
  <body class="gem-c-layout-for-admin govuk-template__body">
    <script>
      document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
    </script>
    
      <!-- You probably want to use the header, main & footer components here -->


    <script src="/assets/collections/application-410ff39f81f7c65f77da249d7fbcd1cdb0532f6c6562f4894aefd8ce7ae99b62.js"></script>
  </body>
</html>

How to call this example

<%= render "govuk_publishing_components/components/layout_for_admin", {
  environment: "production",
  product_name: "Publishing",
  browser_title: "A page title"
} do %>
  <!-- You probably want to use the header, main & footer components here -->
<% end %>