Merge pull request #1604 from sharelatex/ns-fix-capitalization

improve project invite email wording

GitOrigin-RevId: a15c2db992a000d3d1b2e49878380532d9b48e37
This commit is contained in:
Timothée Alby 2019-03-14 10:48:27 -05:00 committed by sharelatex
parent e4c684786d
commit 970ca2e122
2 changed files with 3 additions and 3 deletions

View file

@ -104,13 +104,13 @@ templates.confirmEmail = CTAEmailTemplate({
templates.projectInvite = CTAEmailTemplate({
subject: (opts) -> "#{ _.escape(SpamSafe.safeProjectName(opts.project.name, "New Project")) } - shared by #{ _.escape(SpamSafe.safeEmail(opts.owner.email, "a collaborator")) }"
title: (opts) -> "#{ _.escape(SpamSafe.safeProjectName(opts.project.name, "New Project")) } - shared by #{ _.escape(SpamSafe.safeEmail(opts.owner.email, "a collaborator")) }"
message: (opts) -> "#{ _.escape(SpamSafe.safeEmail(opts.owner.email, "a collaborator")) } wants to share '#{ _.escape(SpamSafe.safeProjectName(opts.project.name, "a new Project")) }' with you."
message: (opts) -> "#{ _.escape(SpamSafe.safeEmail(opts.owner.email, "a collaborator")) } wants to share #{ _.escape(SpamSafe.safeProjectName(opts.project.name, "a new project")) } with you."
ctaText: () -> "View project"
ctaURL: (opts) -> opts.inviteUrl
gmailGoToAction: (opts) ->
target: opts.inviteUrl
name: "View project"
description: "Join #{ _.escape(SpamSafe.safeProjectName(opts.project.name, "Project")) } at #{ settings.appName }"
description: "Join #{ _.escape(SpamSafe.safeProjectName(opts.project.name, "project")) } at #{ settings.appName }"
})
templates.verifyEmailToJoinTeam = CTAEmailTemplate({

View file

@ -70,5 +70,5 @@ describe "EmailBuilder", ->
@email = @EmailBuilder.buildEmail("projectInvite", @opts)
it "should replace spammy project name", ->
@email.html.indexOf("a new Project").should.not.equal -1
@email.html.indexOf("a new project").should.not.equal -1
@email.subject.indexOf("New Project").should.not.equal -1