diff --git a/apps/datahub/src/app/home/news-page/news-page.component.html b/apps/datahub/src/app/home/news-page/news-page.component.html index 1a59f51821..9913a7e43a 100644 --- a/apps/datahub/src/app/home/news-page/news-page.component.html +++ b/apps/datahub/src/app/home/news-page/news-page.component.html @@ -30,8 +30,10 @@ > datahub.news.contact.title -
datahub.news.contact.desc1
-datahub.news.contact.desc2
+ ({ getGlobalConfig: jest.fn(() => ({ @@ -15,6 +17,15 @@ describe('NewsPageComponent', () => { beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [NewsPageComponent], + imports: [ + TranslateTestingModule.withTranslations({ + en: { + 'datahub.news.contact.html': 'line1
line2
', + }, + }) + .withDefaultLanguage('en') + .withCompiler(new TranslateMessageFormatCompiler()), + ], schemas: [NO_ERRORS_SCHEMA], }).compileComponents() diff --git a/conf/default.toml b/conf/default.toml index 6ec88c86a3..1900eab132 100644 --- a/conf/default.toml +++ b/conf/default.toml @@ -34,7 +34,7 @@ proxy_path = "" # More information about the translation can be found in the docs (https://geonetwork.github.io/geonetwork-ui/main/docs/reference/i18n.html) # languages = ['en', 'fr', 'de'] -# Allows displaying a contact email on news page for missing data +# Enables displaying a "contact block" wherever relevant in applications # contact_email = "opendata@mycompany.com" ### VISUAL THEME diff --git a/libs/ui/elements/src/lib/downloads-list/downloads-list.component.spec.ts b/libs/ui/elements/src/lib/downloads-list/downloads-list.component.spec.ts index 22f36d431b..1abb05ee73 100644 --- a/libs/ui/elements/src/lib/downloads-list/downloads-list.component.spec.ts +++ b/libs/ui/elements/src/lib/downloads-list/downloads-list.component.spec.ts @@ -132,6 +132,9 @@ describe('DownloadsListComponent', () => { LINK_FIXTURES.geodataShpWithMimeType ) expect(items[0].componentInstance.format).toEqual('shp') + expect(items[0].componentInstance.color).toEqual( + expect.stringMatching(/#[0-9a-b]{2,6}/i) + ) expect(items[0].componentInstance.isFromWfs).toEqual(false) }) }) diff --git a/translations/de.json b/translations/de.json index 30c5bf1a79..20e6e1a395 100644 --- a/translations/de.json +++ b/translations/de.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "Die beliebtesten", "datahub.header.title.html": "Do you need data that is not currently present on the platform?
Our teams are here to answer you.
", "datahub.news.contact.title": "A specific need?", "datahub.news.feed": "News feed", "datahub.news.figures": "Indicators", diff --git a/translations/es.json b/translations/es.json index 7a44132310..f645ff47e9 100644 --- a/translations/es.json +++ b/translations/es.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "", "datahub.header.title.html": "", "datahub.news.contact.contactus": "", - "datahub.news.contact.desc1": "", - "datahub.news.contact.desc2": "", + "datahub.news.contact.html": "", "datahub.news.contact.title": "", "datahub.news.feed": "", "datahub.news.figures": "", diff --git a/translations/fr.json b/translations/fr.json index cacbff5436..a644345e89 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "Les plus appréciées", "datahub.header.title.html": "Vous avez besoin de données qui ne sont pas présentes sur la plateforme actuellement ?
Nos équipes sont la pour vous répondre.
", "datahub.news.contact.title": "Un besoin spécifique ?", "datahub.news.feed": "Fil d'activité", "datahub.news.figures": "Quelques chiffres", diff --git a/translations/it.json b/translations/it.json index c318f70c68..2a931989de 100644 --- a/translations/it.json +++ b/translations/it.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "", "datahub.header.title.html": "", "datahub.news.contact.contactus": "", - "datahub.news.contact.desc1": "", - "datahub.news.contact.desc2": "", + "datahub.news.contact.html": "", "datahub.news.contact.title": "", "datahub.news.feed": "", "datahub.news.figures": "", diff --git a/translations/nl.json b/translations/nl.json index ee81c4b9ce..a7a0178cd9 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "", "datahub.header.title.html": "", "datahub.news.contact.contactus": "", - "datahub.news.contact.desc1": "", - "datahub.news.contact.desc2": "", + "datahub.news.contact.html": "", "datahub.news.contact.title": "", "datahub.news.feed": "", "datahub.news.figures": "", diff --git a/translations/pt.json b/translations/pt.json index 24220f0954..63b3833b70 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "", "datahub.header.title.html": "", "datahub.news.contact.contactus": "", - "datahub.news.contact.desc1": "", - "datahub.news.contact.desc2": "", + "datahub.news.contact.html": "", "datahub.news.contact.title": "", "datahub.news.feed": "", "datahub.news.figures": "", diff --git a/translations/sk.json b/translations/sk.json index 46e64d0188..40e0c45af2 100644 --- a/translations/sk.json +++ b/translations/sk.json @@ -111,8 +111,7 @@ "datahub.header.popularRecords": "Najpopulárnejšie", "datahub.header.title.html": "