-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathcore.erb
86 lines (71 loc) · 3.53 KB
/
core.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
78
79
80
81
82
83
84
85
86
<!doctype html>
<html lang="en" class="govuk-template no-js">
<head>
<meta content="IE=edge" http-equiv="X-UA-Compatible">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title><%= meta_tags.browser_title %></title>
<%= stylesheet_link_tag :manifest %>
<link rel="canonical" href="<%= meta_tags.canonical_url %>">
<link rel="icon" sizes="48x48" href="/assets/govuk/assets/images/favicon.ico">
<link rel="icon" sizes="any" href="/assets/govuk/assets/images/favicon.svg" type="image/svg+xml">
<link rel="mask-icon" href="/assets/govuk/assets/images/govuk-icon-mask.svg" color="#0b0c0c">
<link rel="apple-touch-icon" href="/assets/govuk/assets/images/govuk-icon-180.png">
<link rel="manifest" href="/assets/govuk/assets/manifest.json">
<% meta_tags.tags.each do |name, content| %>
<%= tag :meta, name: name, content: content %>
<% end %>
<% meta_tags.opengraph_tags.each do |property, content| %>
<%= tag :meta, property: property, content: content %>
<% end %>
<%= yield_content :head %>
</head>
<body class="govuk-template__body">
<script>document.body.className += ' js-enabled' + ('noModule' in HTMLScriptElement.prototype ? ' govuk-frontend-supported' : '');</script>
<div class="app-pane">
<div class="app-pane__header toc-open-disabled">
<a href="#content" class="govuk-skip-link" data-module="govuk-skip-link">Skip to main content</a>
<%= partial 'layouts/header' %>
</div>
<% if content_for? :sidebar %>
<div id="toc-heading" class="toc-show fixedsticky">
<button type="button" class="toc-show__label js-toc-show" aria-controls="toc">
Table of contents <span class="toc-show__icon"></span>
</button>
</div>
<% end %>
<div class="app-pane__body"<%= " data-module=\"#{yield_content(:toc_module)}\"" if content_for? :toc_module %>>
<% if content_for? :sidebar %>
<div class="app-pane__toc">
<div class="toc" data-module="table-of-contents" tabindex="-1" aria-label="Table of contents">
<%= partial "layouts/search" %>
<button type="button" class="toc__close js-toc-close" aria-controls="toc" aria-label="Hide table of contents"></button>
<nav id="toc" class="js-toc-list toc__list" aria-labelledby="toc-heading"<%= " data-module=\"collapsible-navigation\"" if config[:tech_docs][:collapsible_nav] %>>
<%= yield_content :sidebar %>
</nav>
</div>
</div>
<% end %>
<div class="app-pane__content toc-open-disabled" aria-label="Content">
<main id="content" class="technical-documentation" data-module="anchored-headings">
<%= yield %>
<%= partial "layouts/page_review" %>
</main>
<aside>
<% if config[:tech_docs][:show_contribution_banner] %>
<ul class="contribution-banner">
<li><%= link_to "View source", source_urls.view_source_url %></li>
<li><%= link_to "Report problem", source_urls.report_issue_url %></li>
<li><%= link_to "GitHub Repo", source_urls.repo_url %></li>
</ul>
<% end %>
</aside>
<%= partial "layouts/footer" %>
</div>
</div>
</div>
<%= partial 'layouts/analytics' %>
<%= javascript_include_tag :govuk_frontend, :type => "module" %>
<%= javascript_include_tag :application %>
</body>
</html>