Clean code
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54344 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
8de1f08964
commit
b1009769b7
|
@ -9,18 +9,18 @@ export class Composer {
|
|||
private static signature = "OpenAIRE team<br>" + "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>";
|
||||
|
||||
private static ifYouAreNotResponsible(): string {
|
||||
return "If you are not responsible for this community, please "
|
||||
+ "<a href=\'" + this.openaireEmail + "\'>contact us</a>. ";
|
||||
return "If you are not responsible for this community, please "
|
||||
+ "<a href=\'" + this.openaireEmail + "\'>contact us</a>. ";
|
||||
}
|
||||
|
||||
private static manageNotificationSettings(communityId: string): string {
|
||||
return "Click <a href='https://beta.admin.connect.openaire.eu/manage-user-notifications?communityId="
|
||||
+ communityId + "'>here</a> to manage your notification settings. ";
|
||||
return "Click <a href='https://beta.admin.connect.openaire.eu/manage-user-notifications?communityId="
|
||||
+ communityId + "'>here</a> to manage your notification settings. ";
|
||||
}
|
||||
|
||||
private static youAreManagerOfTheCommunity(communityId: string, communityName: string): string {
|
||||
return "You are receiving this e-mail as manager of the community "
|
||||
+ "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. ";
|
||||
return "You are receiving this e-mail as manager of the community "
|
||||
+ "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. ";
|
||||
}
|
||||
|
||||
public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any): Email {
|
||||
|
@ -29,7 +29,7 @@ export class Composer {
|
|||
email.subject = "[OpenAIRE-Connect] " + communityName + ": Welcome new manager";
|
||||
email.body = "<div style='font-size:" + this.noteBodySize + "'><p>Welcome to OpenAIRE Connect!</p>"
|
||||
+ "<p>You are receiving this e-mail as you were assigned as manager of the community <a href='https://beta."
|
||||
+ communityId + ".openaire.eu/'>" + "\"" + communityName + "\"" + "</a> dashboard. "
|
||||
+ communityId + ".openaire.eu/'>" + communityName + "</a> dashboard. "
|
||||
+ "In order to access the administration section of your community you must first login using one of the available options. "
|
||||
+ "<br>The administrative rights are associated to the e-mail address, that was used to send you this message."
|
||||
+ " If you login with an account associated to a different email, please <a href='mailto:helpdesk@openaire.eu'>contact us</a>"
|
||||
|
@ -41,7 +41,6 @@ export class Composer {
|
|||
+ "</div>";
|
||||
email.recipients = newCommunityManagers;
|
||||
|
||||
console.log(email);
|
||||
return email;
|
||||
}
|
||||
|
||||
|
@ -60,8 +59,8 @@ export class Composer {
|
|||
+ this.manageNotificationSettings(communityId)
|
||||
+ "</p>"
|
||||
+ "</div>";
|
||||
|
||||
email.recipients = firstVersionOfManagers;
|
||||
|
||||
return email;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue