Project

General

Profile

« Previous | Next » 

Revision 60274

[Library | Trunk]: Create subscriber invite and subscribers components.

View differences:

composer.ts
242 242
    email.recipient = recipient;
243 243
    return email;
244 244
  }
245
  
246
  public static composeEmailForCommunityDashboard(name: string, recipient: string, role: "manager" | "member") {
247
    let email: Email = new Email();
248
    email.subject = 'OpenAIRE Monitor Dashboard | ' + name;
249
    email.body = '<p>Dear ((__user__)),</p>' +
250
      '<p>You have been invited to be a ' + role +' of the OpenAIRE Monitor Dashboard for the ' + name + '.</p>' +
251
      '<p>Click <a href="((__link__))">this URL</a> and use the verification code below to accept the invitation.</p>' +
252
      '<p>The verification code is <b>((__code__))</b>.</p>' +
253
      (role === "manager"?
254
        '<p>As a manager of the OpenAIRE Monitor Dashboard, you will have access to the administration part of the dashboard, ' +
255
        'where you will be able to customize and manage the profile of the ' + name + '.</p>':
256
        '<p>As a member of the OpenAIRE Monitor Dashboard, you will have access to the restricted access areas of the profile for the ' + name + '.') +
257
      '<p>Please contact us at <a href="mailto:' + properties.helpdeskEmail+'">' +  properties.helpdeskEmail +
258
      '</a> if you have any questions or concerns.</p>' +
259
      '<p>Kind Regards<br>The OpenAIRE Team</p>' +
260
      '<p><a href="' + properties.domain + '">OpenAIRE Monitor</a></p>'
261
    email.recipient = recipient;
262
    return email;
263
  }
245 264
}

Also available in: Unified diff