From 70c7e32e589e4f5f567a04fb2b5e2ff8351ef3f9 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Tue, 17 Jan 2017 10:52:04 +0000 Subject: [PATCH] Add a 'testEmail' email type --- .../coffee/Features/Email/EmailBuilder.coffee | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/Email/EmailBuilder.coffee b/services/web/app/coffee/Features/Email/EmailBuilder.coffee index 306aad3d2a..1aa6f2e413 100644 --- a/services/web/app/coffee/Features/Email/EmailBuilder.coffee +++ b/services/web/app/coffee/Features/Email/EmailBuilder.coffee @@ -123,8 +123,6 @@ Thank you description: "Join #{ opts.project.name } at ShareLaTeX" }) - - templates.completeJoinGroupAccount = subject: _.template "Verify Email to join <%= group_name %> group" layout: BaseWithHeaderEmailLayout @@ -149,6 +147,21 @@ Thank You gmailGoToAction: null }) +templates.testEmail = + subject: _.template "Test Email from ShareLaTeX" + layout: PersonalEmailLayout + type: 'notification' + plainTextTemplate: _.template """ +Hi, + +This is a test email, from ShareLaTeX. + +#{settings.appName} - <%= siteUrl %> +""" + compiledTemplate: _.template """ +

This is a test email, from ShareLaTeX.

+ """ + module.exports = templates: templates @@ -163,4 +176,4 @@ module.exports = html: template.layout(opts) text: template?.plainTextTemplate?(opts) type:template.type - } \ No newline at end of file + }