-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapplication.html.erb
38 lines (29 loc) · 1.1 KB
/
application.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
<% content_for?(:page_title) ? yield(:page_title) : fallback_title %>
<% content_for(:head) do %>
<%= csrf_meta_tags %>
<%= render partial: 'layouts/gtm' if analytics_allowed? %>
<% end %>
<% content_for(:body_start) do %>
<%= render partial: 'layouts/gtm_noscript' if analytics_allowed? %>
<% end %>
<% content_for(:cookie_banner) do %>
<% unless analytics_consent_cookie.present? %>
<%= render partial: 'layouts/cookie_banner' %>
<% end %>
<% if flash['cookies_consent_updated'] %>
<%= render partial: 'layouts/cookie_banner_confirmation', locals: { result: flash['cookies_consent_updated'] } %>
<% end %>
<% end %>
<% content_for(:phase_banner) do %>
<%= render partial: 'layouts/phase_banner' %>
<% end %>
<% content_for(:content) do %>
<%= yield %>
<% end %>
<% content_for(:footer_links) do %>
<% render partial: 'layouts/footer_links' %>
<% end %>
<% if dev_tools_enabled? %>
<%= render partial: 'layouts/developer_tools' if controller_name != "errors" && current_disclosure_report.try(:completed?) %>
<% end %>
<%= render template: 'layouts/govuk_template', layout: false %>