-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgovuk_template.html.erb
77 lines (59 loc) · 3.8 KB
/
govuk_template.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<%= yield :top_of_page %>
<!DOCTYPE html>
<html lang="<%= content_for?(:html_lang) ? yield(:html_lang) : "en" %>" class="govuk-template app-html-class">
<head>
<meta charset="utf-8"/>
<title><%= content_for?(:page_title) ? yield(:page_title) : "GOV.UK - The best place to find government services and information" %></title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#0b0c0c"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<%= favicon_link_tag asset_path('govuk-frontend/dist/govuk/assets/images/favicon.ico'), sizes: '48x48' %>
<%= favicon_link_tag asset_path('govuk-frontend/dist/govuk/assets/images/favicon.svg'), type: 'image/svg+xml', sizes: 'any' %>
<%= favicon_link_tag asset_path('govuk-frontend/dist/govuk/assets/images/govuk-icon-mask.svg'), rel: 'mask-icon', color: '#0b0c0c' %>
<%= favicon_link_tag asset_path('govuk-frontend/dist/govuk/assets/images/govuk-icon-180.png'), rel: 'apple-touch-icon', type: 'image/png', size: '180x180' %>
<%= stylesheet_link_tag 'application', media: 'all', integrity: true, crossorigin: 'anonymous' %>
<meta property="og:image" content="<%= asset_path '/assets/govuk-frontend/govuk/assets/images/govuk-opengraph-image.png' %>">
<%= yield :head %>
</head>
<body class="govuk-template__body app-body-class">
<%= yield :body_start %>
<script>
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
</script>
<%= yield(:cookie_banner) unless controller_name == 'cookies' %>
<a href="#main-content" class="govuk-skip-link" data-module="govuk-skip-link">
<%= content_for?(:skip_link_message) ? yield(:skip_link_message) : 'Skip to main content' %>
</a>
<%= govuk_header(homepage_url: "https://www.gov.uk", service_name: yield(:service_name), service_url: "#") %>
<div class="govuk-width-container app-width-container--wide">
<%= yield(:phase_banner) %>
<%= yield(:notification_banner) %>
<%= yield(:back_link) %>
<main class="govuk-main-wrapper app-main-class" id="main-content" role="main">
<%= yield(:content) %>
</main>
</div>
<footer class="govuk-footer" role="contentinfo">
<div class="govuk-width-container ">
<%= yield(:footer_top) %>
<div class="govuk-footer__meta">
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
<%= yield(:footer_links) %>
<svg aria-hidden="true" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 483.2 195.7" height="17" width="41">
<path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145"/>
</svg>
<span class="govuk-footer__licence-description">
All content is available under the
<a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated
</span>
</div>
<div class="govuk-footer__meta-item">
<a class="govuk-footer__link govuk-footer__copyright-logo" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">© Crown copyright</a>
</div>
</div>
</div>
</footer>
<%= javascript_include_tag 'application', integrity: true, crossorigin: 'anonymous' %>
<%= yield :body_end %>
</body>
</html>