Skip to content

Commit

Permalink
Merge branch 'main' into entityRowValuesToLinks
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeGoodall committed Jan 16, 2024
2 parents a5a174c + a022f92 commit e5e7488
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 6 deletions.
1 change: 1 addition & 0 deletions application/templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{% extends "layouts/layout.html" %}
{% block pageTitle %}Planning Data{% endblock %}
{% set templateName = "dl-info/homepage.html" %}
{% set hideBannerBorder = true %}

{% block main %}
<main id="content">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version: 1.2.2

Published: 11 September 2023

---

There are 2 datasets you must provide for article 4 directions:

- [article 4 direction dataset](#{{ 'article 4 direction dataset' | slugify }})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version: 1.2.2

Published: 8 September 2023

---

There are 2 datasets you must provide for conservation area data:

- [conservation area dataset](#{{ 'conservation area dataset' | slugify }})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@

<ul class="govuk-list govuk-list--spaced">
<li><a href="article-4-direction">Article 4 Direction data</a></li>
<li><a href="https://www.gov.uk/government/publications/brownfield-land-registers-data-standard/publish-your-brownfield-land-data">Brownfield land data</a></li>
<li><a href="conservation-area">Conservation area data</a></li>
<li><a href="https://www.gov.uk/guidance/publish-your-developer-contributions-data">Developer contributions data</a></li>
<li><a href="listed-building">Listed building data</a></li>
<li><a href="tree-preservation-order">Tree preservation order data</a></li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version: 1.1.1

Published: 9 June 2023

---

You must provide one dataset for listed buildings.

Format
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Version: 1.2.2

Published: 8 September 2023

---

There are 3 datasets you must provide for tree preservation orders:

- [tree preservation order dataset](#{{ 'tree preservation order dataset' | slugify }})
Expand Down
5 changes: 3 additions & 2 deletions application/templates/partials/phase-banner.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{% from "components/phase-banner/macro.jinja" import dlPhaseBanner %}

{{
dlPhaseBanner({
'phase': 'Beta',
'html': 'This is a new service – to help us improve it, <a href="https://docs.google.com/forms/d/e/1FAIpQLSc1yzvw1Duv6nQRS56p379IxxMdAC5EfklMfUnCVMikgbi0Xw/viewform" target="_blank">sign up to take part in research</a>',
'html': 'This is a new service – to help us improve it, <a href="https://docs.google.com/forms/d/e/1FAIpQLSc1yzvw1Duv6nQRS56p379IxxMdAC5EfklMfUnCVMikgbi0Xw/viewform" target="_blank" class="govuk-link">sign up to take part in research</a>',
'classes': 'govuk-width-container govuk-width-container' if not fullWidthHeader else 'govuk-width-container',
'attributes': {
'style': '' if not fullWidthHeader else 'padding: 10px 30px; max-width: unset;'
'style': 'border-bottom: 0px' if hideBannerBorder else '' + '' if not fullWidthHeader else 'padding: 10px 30px; max-width: unset;'
}
})
}}
2 changes: 1 addition & 1 deletion assets/javascripts/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function showCookieConfirmation () {

export function setTrackingCookies () {
var cookiesPolicy = JSON.parse(getCookie('cookies_policy'))
var doNotTrack = cookiesPolicy == null || !cookiesPolicy.usage
var doNotTrack = true; //cookiesPolicy == null || !cookiesPolicy.usage
if (doNotTrack) {
if(window.gaMeasurementId){
window[`ga-disable-${window.gaMeasurementId}`] = true;
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/javascript/cookies.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ describe('cookies.js', () => {
window.gaMeasurementId = fakeMeasurementId;
setCookie('cookies_policy', JSON.stringify({usage: true}));
setTrackingCookies();
expect(window[`ga-disable-${fakeMeasurementId}`]).toBe(false);
expect(window[`ga-disable-${fakeMeasurementId}`]).toBe(true);

expect(Array.from(dataLayer[0])).toEqual(['js', new Date()]);
expect(Array.from(dataLayer[1])).toEqual(['config', fakeMeasurementId]);
// expect(Array.from(dataLayer[0])).toEqual(['js', new Date()]);
// expect(Array.from(dataLayer[1])).toEqual(['config', fakeMeasurementId]);

})
})
Expand Down

0 comments on commit e5e7488

Please sign in to comment.