From e321a02d70660004a9ed8ccbe64913f9bf784efd Mon Sep 17 00:00:00 2001 From: Nick Lupton <19624419+mr-nick17@users.noreply.github.com> Date: Wed, 30 Nov 2022 14:02:45 +0000 Subject: [PATCH] 5951 add messaging about xlsx delay --- assets/locales/service.cy.toml | 4 ++++ assets/locales/service.en.toml | 4 ++++ .../templates/partials/census/get-data.tmpl | 19 +++++++++++++------ mapper/census.go | 1 + mapper/census_test.go | 8 ++++++++ model/datasetLandingPageCensus/model.go | 1 + 6 files changed, 31 insertions(+), 6 deletions(-) diff --git a/assets/locales/service.cy.toml b/assets/locales/service.cy.toml index e91db7e3..c64dd59e 100644 --- a/assets/locales/service.cy.toml +++ b/assets/locales/service.cy.toml @@ -274,6 +274,10 @@ one = "Select your download format" description = "Get the data component lead text" one = "Download the data in the following formats" +[GetDataXLSXInfo] +description = "xlsx delay information with {{.URI}}" +one = "If you are not seeing an xlsx download file, please refresh the page. If the number of rows within the data set exceeds 1 million, the xlsx download file will not be available." + [IncludesSupportingInfo] description = "Dataset and supporting information" one = "Dataset and supporting information" diff --git a/assets/locales/service.en.toml b/assets/locales/service.en.toml index 491749e5..a6326685 100644 --- a/assets/locales/service.en.toml +++ b/assets/locales/service.en.toml @@ -255,6 +255,10 @@ one = "Select your download format" description = "Get the data component lead text" one = "Download the data in the following formats" +[GetDataXLSXInfo] +description = "xlsx delay information with {{.URI}}" +one = "If you are not seeing an xlsx download file, please refresh the page. If the number of rows within the data set exceeds 1 million, the xlsx download file will not be available." + [IncludesSupportingInfo] description = "Dataset and supporting information" one = "Dataset and supporting information" diff --git a/assets/templates/partials/census/get-data.tmpl b/assets/templates/partials/census/get-data.tmpl index fe66d98a..9c34e235 100644 --- a/assets/templates/partials/census/get-data.tmpl +++ b/assets/templates/partials/census/get-data.tmpl @@ -3,13 +3,20 @@
+ {{- localise "GetDataXLSXInfo" .Language 1 .URI | safeHTML -}} +
+- {{ localise "GetDataValidationError" .Language 1 }} -
++ {{ localise "GetDataValidationError" .Language 1 }} +
{{ end }}