Use the new template in the join group email.

This commit is contained in:
Paulo Reis 2016-12-16 14:57:59 +00:00
parent 0fe3664a82
commit ca5040882f

View file

@ -67,7 +67,7 @@ ShareLaTeX Co-founder
templates.passwordResetRequested = templates.passwordResetRequested =
subject: _.template "Password Reset - #{settings.appName}" subject: _.template "Password Reset - #{settings.appName}"
layout: NotificationEmailLayout layout: BaseWithHeaderEmailLayout
type:"notification" type:"notification"
plainTextTemplate: _.template """ plainTextTemplate: _.template """
Password Reset Password Reset
@ -122,7 +122,7 @@ Thank you
templates.completeJoinGroupAccount = templates.completeJoinGroupAccount =
subject: _.template "Verify Email to join <%= group_name %> group" subject: _.template "Verify Email to join <%= group_name %> group"
layout: NotificationEmailLayout layout: BaseWithHeaderEmailLayout
type:"notification" type:"notification"
plainTextTemplate: _.template """ plainTextTemplate: _.template """
Hi, please verify your email to join the <%= group_name %> and get your free premium account Hi, please verify your email to join the <%= group_name %> and get your free premium account
@ -133,23 +133,15 @@ Thank You
#{settings.appName} - <%= siteUrl %> #{settings.appName} - <%= siteUrl %>
""" """
compiledTemplate: _.template """ compiledTemplate: (opts) ->
<p>Hi, please verify your email to join the <%= group_name %> and get your free premium account</p> SingleCTAEmailBody({
<center> title: "Verify Email to join #{ opts.group_name } group"
<div style="width:200px;background-color:#a93629;border:1px solid #e24b3b;border-radius:3px;padding:15px; margin:24px;"> greeting: "Hi,"
<div style="padding-right:10px;padding-left:10px"> message: "please verify your email to join the #{ opts.group_name } group and get your free premium account."
<a href="<%= completeJoinUrl %>" style="text-decoration:none" target="_blank"> secondaryMessage: null
<span style= "font-size:16px;font-family:Helvetica,Arial;font-weight:400;color:#fff;white-space:nowrap;display:block; text-align:center"> ctaText: "Verify now"
Verify now ctaURL: opts.completeJoinUrl
</span> })
</a>
</div>
</div>
</center>
<p> Thank you</p>
<p> <a href="<%= siteUrl %>">#{settings.appName}</a></p>
"""
module.exports = module.exports =
templates: templates templates: templates
@ -165,4 +157,4 @@ module.exports =
html: template.layout(opts) html: template.layout(opts)
text: template?.plainTextTemplate?(opts) text: template?.plainTextTemplate?(opts)
type:template.type type:template.type
} }