Преглед изворни кода

Add a 'testEmail' email type

Shane Kilkelly пре 9 година
родитељ
комит
70c7e32e58
1 измењених фајлова са 16 додато и 3 уклоњено
  1. 16 3
      services/web/app/coffee/Features/Email/EmailBuilder.coffee

+ 16 - 3
services/web/app/coffee/Features/Email/EmailBuilder.coffee

@@ -123,8 +123,6 @@ Thank you
 				description: "Join #{ opts.project.name } at ShareLaTeX"
 				description: "Join #{ opts.project.name } at ShareLaTeX"
 		})
 		})
 
 
-
-
 templates.completeJoinGroupAccount =
 templates.completeJoinGroupAccount =
 	subject: _.template "Verify Email to join <%= group_name %> group"
 	subject: _.template "Verify Email to join <%= group_name %> group"
 	layout: BaseWithHeaderEmailLayout
 	layout: BaseWithHeaderEmailLayout
@@ -149,6 +147,21 @@ Thank You
 			gmailGoToAction: null
 			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 """
+	<p>This is a test email, from ShareLaTeX.</p>
+	"""
+
 module.exports =
 module.exports =
 	templates: templates
 	templates: templates
 
 
@@ -163,4 +176,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
-		}
+		}