|
45 | 45 | {% endblock %} |
46 | 46 |
|
47 | 47 | {% block header %} |
48 | | - {% if config.googleAnalyticsTrackingId and slug %} |
49 | | - <form method="post" action="/help/cookie-preferences/{{ slug }}?returnUrl={{ currentPath | urlencode }}"> |
50 | | - <input type="hidden" name="crumb" value="{{ crumb }}"> |
51 | | - |
52 | | - {% set acceptHtml %} |
53 | | - <p class="govuk-body">You’ve accepted analytics cookies. You can <a class="govuk-link" href="/help/cookies/{{ slug }}">change your cookie settings</a> at any time.</p> |
54 | | - {% endset %} |
55 | | - |
56 | | - {% set rejectedHtml %} |
57 | | - <p class="govuk-body">You’ve rejected analytics cookies. You can <a class="govuk-link" href="/help/cookies/{{ slug }}">change your cookie settings</a> at any time.</p> |
58 | | - {% endset %} |
59 | | - |
60 | | - {% if cookieConsent.analytics !== true and cookieConsent.analytics !== false and cookieConsent.dismissed !== true %} |
61 | | - {% set html %} |
62 | | - <p class="govuk-body">We use some essential cookies to make this service work.</p> |
63 | | - <p class="govuk-body">We’d like to set analytics cookies so we can understand how people use the service and make improvements.</p> |
64 | | - {% endset %} |
65 | | - |
66 | | - {{ govukCookieBanner({ |
67 | | - ariaLabel: "Cookies on " + config.serviceName, |
68 | | - messages: [ |
69 | | - { |
70 | | - headingText: config.serviceName, |
71 | | - html: html, |
72 | | - actions: [ |
73 | | - { |
74 | | - text: "Accept analytics cookies", |
75 | | - type: "submit", |
76 | | - name: "cookies[analytics]", |
77 | | - value: "yes" |
78 | | - }, |
79 | | - { |
80 | | - text: "Reject analytics cookies", |
81 | | - type: "submit", |
82 | | - name: "cookies[analytics]", |
83 | | - value: "no" |
84 | | - }, |
85 | | - { |
86 | | - text: "View cookies", |
87 | | - href: "/help/cookies/" + slug |
88 | | - } |
89 | | - ] |
90 | | - } |
91 | | - ] |
92 | | - }) }} |
93 | | - {% elif cookieConsent.dismissed === false %} |
94 | | - {{ govukCookieBanner({ |
95 | | - ariaLabel: "Cookies on " + config.serviceName, |
96 | | - messages: [ |
97 | | - { |
98 | | - html: acceptHtml if cookieConsent.analytics === true else rejectedHtml, |
99 | | - actions: [ |
100 | | - { |
101 | | - text: "Hide cookie message", |
102 | | - type: "submit", |
103 | | - name: "cookies[dismissed]", |
104 | | - value: "yes" |
105 | | - } |
106 | | - ] |
107 | | - } |
108 | | - ] |
109 | | - }) }} |
110 | | - {% endif %} |
111 | | - |
112 | | - </form> |
113 | | - {% endif %} |
114 | | - |
115 | | - {% if config.serviceBannerText | length %} |
116 | | - {{ appServiceBanner({ |
117 | | - title: "Service status", |
118 | | - text: config.serviceBannerText |
119 | | - }) }} |
120 | | - {% endif %} |
121 | | - |
122 | 48 | {{ govukHeader({ |
123 | 49 | homepageUrl: currentPath if context.isForceAccess else "https://www.gov.uk", |
124 | 50 | containerClasses: "govuk-width-container", |
125 | 51 | productName: productName | safe | trim, |
126 | | - serviceName: name if name else config.serviceName, |
| 52 | + serviceName: "DXT development server", |
127 | 53 | serviceUrl: currentPath if context.isForceAccess else serviceUrl |
128 | 54 | }) }} |
129 | 55 | {% endblock %} |
|
0 commit comments