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="QBEIv7TI51qSdujz4V8w8Yy0gsNhovYEHB9ZbrRK8tARhTPa4Z8d6ABjmsleUMKbCoI9HvmxvwrY0J2FjtEIEA" />
<link rel="icon" type="image/x-icon" href="/assets/frontend/govuk_publishing_components/favicon-production-f24c2313e8823e049575a8960114d0c48d6638f023ce171650bc471aa7ab420c.png" />
<link rel="stylesheet" href="/assets/frontend/application-e9fbc25af291be17c5c7b8b58a8facbf1c0b6e43d809f5f9424c5c492bf2d1e0.css" media="all" />
</head>
<body class="gem-c-layout-for-admin govuk-template__body">
<script nonce="+ro+rc8/gBx4ZGDub6vtEw==">
//<![CDATA[
document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');
//]]>
</script>
<!-- You probably want to use the header, main & footer components here -->
<script src="/assets/frontend/application-d6e47bc88901cd8560bd9bf14e5d2cba30095365f416b40e4384b3dd50b58c26.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 %>