Просмотр исходного кода

Add link to "change project owner" wiki page in the email template when inviting an existing user to join managed users.

GitOrigin-RevId: a1079a6a54f0c354bef368fe6e9257be4ce0b07e
M Fahru 3 лет назад
Родитель
Сommit
be8b7dfa1e
1 измененных файлов с 8 добавлено и 2 удалено
  1. 8 2
      services/web/app/src/Features/Email/EmailBuilder.js

+ 8 - 2
services/web/app/src/Features/Email/EmailBuilder.js

@@ -376,13 +376,19 @@ templates.verifyEmailToJoinManagedUsers = ctaTemplate({
       `By joining this group, you'll have access to ${settings.appName} premium features such as additional collaborators, greater maximum compile time, and real-time track changes.`,
     ]
   },
-  secondaryMessage(opts) {
+  secondaryMessage(opts, isPlainText) {
+    const changeProjectOwnerLink = EmailMessageHelper.displayLink(
+      'change project owner',
+      `${settings.siteUrl}/learn/how-to/How_to_Transfer_Project_Ownership`,
+      isPlainText
+    )
+
     return [
       `<b>User accounts in this group are managed by ${_.escape(
         _formatUserNameAndEmail(opts.admin, 'an admin')
       )}</b>`,
       `If you accept, you’ll transfer the management of your ${settings.appName} account to the owner of the group subscription, who will then have admin rights over your account and control over your stuff.`,
-      `If you have personal projects in your ${settings.appName} account that you want to keep separate, that’s not a problem. You can set up another account under a personal email address and change the ownership of your personal projects to the new account. Find out how to change project owner.`,
+      `If you have personal projects in your ${settings.appName} account that you want to keep separate, that’s not a problem. You can set up another account under a personal email address and change the ownership of your personal projects to the new account. Find out how to ${changeProjectOwnerLink}.`,
     ]
   },
   ctaURL(opts) {