Skip to content

Commit 8f1989d

Browse files
authored
Merge pull request #4492 from nickmango/feature/cla-mgr-email
[#3498] Project Name
2 parents 0c3f707 + f2c3294 commit 8f1989d

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

cla-backend-go/emails/cla_manager_templates.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -218,12 +218,12 @@ const (
218218
//ClaManagerAddedEToUserTemplate email template for cla manager v2
219219
ClaManagerAddedEToUserTemplate = `
220220
<p>Hello {{.RecipientName}},</p>
221-
<p>This is a notification email from EasyCLA regarding the project {{.Project.ExternalProjectName}} and CLA Group {{.CLAGroupName}}.</p>
222-
<p>You have been added as a CLA Manager for the organization {{.CompanyName}} and the project {{.Project.ExternalProjectName}}. This means that you can now maintain the
223-
list of employees allowed to contribute to the project {{.Project.ExternalProjectName}} on behalf of your company, as well as view and manage the list of your
221+
<p>This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.</p>
222+
<p>You have been added as a CLA Manager for the organization {{.CompanyName}} and the CLAGroup {{.CLAGroupName}}. This means that you can now maintain the
223+
list of employees allowed to contribute to the CLA Group {{.CLAGroupName}} on behalf of your company, as well as view and manage the list of your
224224
company’s CLA Managers for the CLA Group {{.CLAGroupName}}.</p>
225225
<p> To get started, please log into the <a href="{{.CorporateConsole}}" target="_blank">EasyCLA Corporate Console</a>, and select your
226-
company and then the project {{.Project.ExternalProjectName}}. From here you will be able to edit the list of approved employees and CLA Managers.</p>
226+
company and then the project {{.CLAGroupName}}. From here you will be able to edit the list of approved employees and CLA Managers.</p>
227227
`
228228
)
229229

@@ -252,10 +252,10 @@ const (
252252
// ClaManagerAddedToCLAManagersTemplate is email template for
253253
ClaManagerAddedToCLAManagersTemplate = `
254254
<p>Hello {{.RecipientName}},</p>
255-
<p>This is a notification email from EasyCLA regarding the project {{.Project.ExternalProjectName}} associated with the CLA Group {{.CLAGroupName}}.</p>
256-
<p>The following user has been added as a CLA Manager from {{.CompanyName}} for the project {{.Project.ExternalProjectName}}. This means that they can now
257-
maintain the list of employees allowed to contribute to {{.Project.ExternalProjectName}} on behalf of your company, as well as view and manage the
258-
list of company’s CLA Managers for {{.Project.ExternalProjectName}}.</p>
255+
<p>This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.</p>
256+
<p>The following user has been added as a CLA Manager from {{.CompanyName}} for the CLA Group {{.CLAGroupName}}. This means that they can now
257+
maintain the list of employees allowed to contribute to {{.CLAGroupName}} on behalf of your company, as well as view and manage the
258+
list of company’s CLA Managers for CLA Group {{.CLAGroupName}}.</p>
259259
<ul>
260260
<li>{{.Name}} ({{.Email}})</li>
261261
</ul>
@@ -287,8 +287,8 @@ const (
287287
// ClaManagerDeletedToCLAManagersTemplate is template for
288288
ClaManagerDeletedToCLAManagersTemplate = `
289289
<p>Hello {{.RecipientName}},</p>
290-
<p>This is a notification email from EasyCLA regarding the project {{.Project.ExternalProjectName}}.</p>
291-
<p>{{.Name}} ({{.Email}}) has been removed as a CLA Manager from {{.CompanyName}} for the project {{.Project.ExternalProjectName}}.</p>
290+
<p>This is a notification email from EasyCLA regarding the CLA Group {{.CLAGroupName}}.</p>
291+
<p>{{.Name}} ({{.Email}}) has been removed as a CLA Manager from {{.CompanyName}} for CLA Group {{.CLAGroupName}}.</p>
292292
`
293293
)
294294

cla-backend-go/emails/cla_manager_templates_test.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ func TestClaManagerAddedEToUserTemplate(t *testing.T) {
198198
params)
199199
assert.NoError(t, err)
200200
assert.Contains(t, result, "Hello JohnsClaManager")
201-
assert.Contains(t, result, "regarding the project JohnsProjectExternal")
202-
assert.Contains(t, result, "CLA Manager for the organization JohnsCompany and the project JohnsProjectExternal")
203-
assert.Contains(t, result, "allowed to contribute to the project JohnsProjectExternal")
201+
assert.Contains(t, result, "the CLA Group JohnsProject.")
202+
assert.Contains(t, result, "organization JohnsCompany and the CLAGroup JohnsProject")
203+
assert.Contains(t, result, "allowed to contribute to the CLA Group JohnsProject")
204204
assert.Contains(t, result, "CLA Managers for the CLA Group JohnsProject")
205205
assert.Contains(t, result, "<a href=\"http://CorporateURL.com\" target=\"_blank\">")
206206
assert.Contains(t, result, "and then the project JohnsProject")
@@ -224,10 +224,9 @@ func TestClaManagerAddedToCLAManagersTemplate(t *testing.T) {
224224
params)
225225
assert.NoError(t, err)
226226
assert.Contains(t, result, "Hello JohnsClaManager")
227-
assert.Contains(t, result, "regarding the project JohnsProjectExternal associated with the CLA Group JohnsProject")
228-
assert.Contains(t, result, "CLA Manager from JohnsCompany for the project JohnsProjectExternal")
229-
assert.Contains(t, result, "contribute to JohnsProjectExternal")
230-
assert.Contains(t, result, "CLA Managers for JohnsProjectExternal")
227+
assert.Contains(t, result, "regarding the CLA Group JohnsProject")
228+
assert.Contains(t, result, "contribute to JohnsProject")
229+
assert.Contains(t, result, "CLA Managers for CLA Group JohnsProject")
231230
assert.Contains(t, result, "<li>John ([email protected])</li>")
232231

233232
}
@@ -250,7 +249,6 @@ func TestClaManagerDeletedToCLAManagersTemplate(t *testing.T) {
250249
params)
251250
assert.NoError(t, err)
252251
assert.Contains(t, result, "Hello JohnsClaManager")
253-
assert.Contains(t, result, "regarding the project JohnsProject")
254252
assert.Contains(t, result, "John ([email protected]) has been removed")
255253

256254
}

0 commit comments

Comments
 (0)