Project

General

Profile

« Previous | Next » 

Revision 58655

[Library | Trunk]: Add adminPortalURL property for composer.ts

View differences:

composer.ts
13 13
  private static openaireAddress = "<a href='https://www.openaire.eu'>www.openaire.eu</a><br>";
14 14
  private static signature =  Composer.closing + "<br>" + Composer.openaireAddress;
15 15

  
16
  private static ifYouAreNotResponsible(): string {
16
  private static ifYouAreNotResponsible(mail): string {
17 17
      return "If you are not responsible for this community, please "
18
              + "<a href=\'" + this.openaireEmail + "\'>contact us</a>. ";
18
              + "<a href=\mailto:'" + mail + "\'>contact us</a>. ";
19 19
  }
20 20

  
21 21
  private static manageNotificationSettings(communityId: string): string {
......
28 28
              + "<a href='https://beta." + communityId + ".openaire.eu/'>" + communityName + "</a>. ";
29 29
  }
30 30

  
31
  public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any): Email {
31
  public static composeEmailForNewManager(communityId: string, communityName: string, newCommunityManagers: any, mail: string): Email {
32 32
      let email: Email = new Email();
33 33

  
34 34
      email.subject = this.subjectPrefix + communityName + ": Welcome new manager";
......
42 42
                    + "You can access the administration tool by clicking the \"Manage\" button that will be available in the top right corner of the dashboard."
43 43
                    + "</p>"
44 44
                    + this.signature
45
                    + "<p style='font-size:" + this.noteFontSize + "'>" + this.ifYouAreNotResponsible() + "<p>"
45
                    + "<p style='font-size:" + this.noteFontSize + "'>" + this.ifYouAreNotResponsible(mail) + "<p>"
46 46
                    + "</div>";
47 47
      email.recipients = newCommunityManagers;
48 48

  
......
90 90
    return email;
91 91
  }
92 92
  
93
  public static composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any, managers: any) : Email {
93
  public static composeEmailToInformOldManagersForTheNewOnes(communityName: string, communityId: string, firstVersionOfManagers: any, managers: any, mail: string) : Email {
94 94
      let email: Email = new Email();
95 95

  
96 96
      email.subject = this.subjectPrefix + communityName + ": Managers list notification";
......
100 100
                    + this.signature
101 101
                    + "<p style='font-size:" + this.noteFontSize + "'>"
102 102
                    + this.youAreManagerOfTheCommunity(communityId, communityName)
103
                    + this.ifYouAreNotResponsible()
103
                    + this.ifYouAreNotResponsible(mail)
104 104
                    + "<br>"
105 105
                    + this.manageNotificationSettings(communityId)
106 106
                    + "</p>"
......
110 110
      return email;
111 111
  }
112 112

  
113
  public static composeEmailToInformManagers(communityName: string, communityId: string, managers: any, subscriberMail: any): Email {
113
  public static composeEmailToInformManagers(communityName: string, communityId: string, managers: any, subscriberMail: any, adminPortalURL: string): Email {
114 114
    let email: Email = new Email();
115 115

  
116 116
    email.subject = this.subjectPrefix + communityName + ": New subscriber notification";
117 117
    email.body = "<div style='font-size" + this.noteBodySize + "'>"
118 118
                 + "<p>There is a new subscriber ("+subscriberMail+") for \"" + communityName + "\" community. Click  "
119
                 + "<a href='https://beta.admin.connect.openaire.eu/manage-subscribers?communityId="
119
                 + "<a href='" + adminPortalURL +  "/manage-subscribers?communityId="
120 120
                 + communityId + "'>here</a> to manage the subscribers list. </p>"
121 121
                 + this.signature
122 122
                 + "<p style='font-size:" + this.noteFontSize + "'>"

Also available in: Unified diff