mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
limit project name in email to 40 chars
This commit is contained in:
parent
74240e28c7
commit
9153ffac41
1 changed files with 4 additions and 4 deletions
|
@ -97,7 +97,7 @@ Thank you
|
||||||
|
|
||||||
|
|
||||||
templates.projectInvite =
|
templates.projectInvite =
|
||||||
subject: _.template "<%= project.name %> - shared by <%= owner.email %>"
|
subject: _.template "<%= project.name.slice(0, 40) %> - shared by <%= owner.email %>"
|
||||||
layout: BaseWithHeaderEmailLayout
|
layout: BaseWithHeaderEmailLayout
|
||||||
type:"notification"
|
type:"notification"
|
||||||
plainTextTemplate: _.template """
|
plainTextTemplate: _.template """
|
||||||
|
@ -111,16 +111,16 @@ Thank you
|
||||||
"""
|
"""
|
||||||
compiledTemplate: (opts) ->
|
compiledTemplate: (opts) ->
|
||||||
SingleCTAEmailBody({
|
SingleCTAEmailBody({
|
||||||
title: "#{ opts.project.name } – shared by #{ opts.owner.email }"
|
title: "#{ opts.project.name.slice(0, 40) } – shared by #{ opts.owner.email }"
|
||||||
greeting: "Hi,"
|
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
|
secondaryMessage: null
|
||||||
ctaText: "View project"
|
ctaText: "View project"
|
||||||
ctaURL: opts.inviteUrl
|
ctaURL: opts.inviteUrl
|
||||||
gmailGoToAction:
|
gmailGoToAction:
|
||||||
target: opts.inviteUrl
|
target: opts.inviteUrl
|
||||||
name: "View project"
|
name: "View project"
|
||||||
description: "Join #{ opts.project.name } at ShareLaTeX"
|
description: "Join #{ opts.project.name.slice(0, 40) } at ShareLaTeX"
|
||||||
})
|
})
|
||||||
|
|
||||||
templates.completeJoinGroupAccount =
|
templates.completeJoinGroupAccount =
|
||||||
|
|
Loading…
Reference in a new issue