From 9153ffac41f240a901992ccb918843d393963014 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Sat, 21 Jan 2017 12:58:16 +0000 Subject: [PATCH] limit project name in email to 40 chars --- .../web/app/coffee/Features/Email/EmailBuilder.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/web/app/coffee/Features/Email/EmailBuilder.coffee b/services/web/app/coffee/Features/Email/EmailBuilder.coffee index 0a06a2a175..5360adb7a8 100644 --- a/services/web/app/coffee/Features/Email/EmailBuilder.coffee +++ b/services/web/app/coffee/Features/Email/EmailBuilder.coffee @@ -97,7 +97,7 @@ Thank you templates.projectInvite = - subject: _.template "<%= project.name %> - shared by <%= owner.email %>" + subject: _.template "<%= project.name.slice(0, 40) %> - shared by <%= owner.email %>" layout: BaseWithHeaderEmailLayout type:"notification" plainTextTemplate: _.template """ @@ -111,16 +111,16 @@ Thank you """ compiledTemplate: (opts) -> SingleCTAEmailBody({ - title: "#{ opts.project.name } – shared by #{ opts.owner.email }" + title: "#{ opts.project.name.slice(0, 40) } – shared by #{ opts.owner.email }" greeting: "Hi," - message: "#{ opts.owner.email } wants to share “#{ opts.project.name }” with you." + message: "#{ opts.owner.email } wants to share “#{ opts.project.name.slice(0, 40) }” with you." secondaryMessage: null ctaText: "View project" ctaURL: opts.inviteUrl gmailGoToAction: target: opts.inviteUrl name: "View project" - description: "Join #{ opts.project.name } at ShareLaTeX" + description: "Join #{ opts.project.name.slice(0, 40) } at ShareLaTeX" }) templates.completeJoinGroupAccount =