[Library|Trunk]
Composer: in links with 'beta.' prefix use property.environment to set the prefix accordingly. Remove text that connect is in beta version git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60106 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
440e23e56f
commit
e77774e951
|
@ -7,8 +7,6 @@ export class Composer {
|
||||||
private static noteBodySize = "14px";
|
private static noteBodySize = "14px";
|
||||||
private static noteFontSize = "11px";
|
private static noteFontSize = "11px";
|
||||||
|
|
||||||
// TODO move to properties
|
|
||||||
private static openaireEmail = "mailto:openaire.test@gmail.com";
|
|
||||||
private static subjectPrefix = "[OpenAIRE-Connect] ";
|
private static subjectPrefix = "[OpenAIRE-Connect] ";
|
||||||
private static closing = "OpenAIRE team";
|
private static closing = "OpenAIRE team";
|
||||||
private static openaireAddress = "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>";
|
private static openaireAddress = "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>";
|
||||||
|
@ -26,7 +24,7 @@ export class Composer {
|
||||||
|
|
||||||
private static youAreManagerOfTheCommunity(communityId: string, communityName: string): string {
|
private static youAreManagerOfTheCommunity(communityId: string, communityName: string): string {
|
||||||
return "You are receiving this e-mail as manager of the community "
|
return "You are receiving this e-mail as manager of the community "
|
||||||
+ "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. ";
|
+ "<a href='https://"+ (properties.environment == "production"?'':'beta.') + communityId + ".openaire.eu/'>" + communityName + "</a>. ";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any, mail: string): Email {
|
public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any, mail: string): Email {
|
||||||
|
@ -199,11 +197,11 @@ export class Composer {
|
||||||
let body: Body = new Body();
|
let body: Body = new Body();
|
||||||
let defaultMainBody;
|
let defaultMainBody;
|
||||||
if(communityId !== 'covid-19') {
|
if(communityId !== 'covid-19') {
|
||||||
defaultMainBody ='<p>You are invited to subscribe to <a href="https://beta.' + communityId + '.openaire.eu/">'
|
defaultMainBody ='<p>You are invited to subscribe to <a href="https://' + (properties.environment == "production"?'':'beta.') + communityId + '.openaire.eu/">'
|
||||||
+ communityTitle + '</a> dashboard.<br>'
|
+ communityTitle + '</a> dashboard.<br>'
|
||||||
+ 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.</p>'
|
+ 'The purpose of this dashboard is to gather, link & monitor the research results related to your community.</p>'
|
||||||
+ '<p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> '
|
+ '<p>The community dashboard is part of the <a href="https://connect.openaire.eu/">OpenAIRE-Connect</a> '
|
||||||
+ 'project and currently is in BETA version.'
|
+ 'project.'
|
||||||
+ '</p>';
|
+ '</p>';
|
||||||
} else {
|
} else {
|
||||||
defaultMainBody = '<p>This is a dashboard that gathers, links & monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' +
|
defaultMainBody = '<p>This is a dashboard that gathers, links & monitors research results related COVID-19 (multi-disciplinary) from authoritative OA sources around the world. ' +
|
||||||
|
|
Loading…
Reference in New Issue