From c63b03402e924dec3ff2c20f7c45f72c0824bebf Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 15 Jan 2021 13:35:32 +0000 Subject: [PATCH] [Library | Trunk]: Fix invite message for covid-19 community git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60256 d315682c-612b-4755-9ff5-7f18f6832af3 --- utils/email/composer.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/utils/email/composer.ts b/utils/email/composer.ts index c4e6f284..061d2ba7 100644 --- a/utils/email/composer.ts +++ b/utils/email/composer.ts @@ -195,16 +195,15 @@ export class Composer { // TODO remove this after adding this on admin public static initializeInvitationsBody(communityId: string, communityTitle: string, fullname: string): Body { let body: Body = new Body(); - let defaultMainBody; + let defaultMainBody = '

You are invited to subscribe to ' + + communityTitle + ' dashboard.
'; if(communityId !== 'covid-19') { - defaultMainBody ='

You are invited to subscribe to ' - + communityTitle + ' dashboard.
' - + 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.

' + defaultMainBody += 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.

' + '

The community dashboard is part of the OpenAIRE-Connect ' + 'project.' + '

'; } else { - defaultMainBody = '

This is a dashboard that gathers, links & monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' + + defaultMainBody += 'This is a dashboard that gathers, links & monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' + 'We have a community of experts moderating and curating the content.

' + '

What you can do:

' + '