From 426b699865c364b597a90f1e9ccaada01daa318c Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Tue, 17 Jun 2014 16:28:52 +0100 Subject: [PATCH] links in emails use site url --- .../web/app/coffee/Features/Email/EmailBuilder.coffee | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/services/web/app/coffee/Features/Email/EmailBuilder.coffee b/services/web/app/coffee/Features/Email/EmailBuilder.coffee index 8da26bc8b3..db8ece5412 100644 --- a/services/web/app/coffee/Features/Email/EmailBuilder.coffee +++ b/services/web/app/coffee/Features/Email/EmailBuilder.coffee @@ -2,6 +2,7 @@ _ = require('underscore') PersonalEmailLayout = require("./Layouts/PersonalEmailLayout") NotificationEmailLayout = require("./Layouts/NotificationEmailLayout") +settings = require("settings-sharelatex") templates = {} @@ -10,7 +11,7 @@ templates.welcome = layout: PersonalEmailLayout type:"lifecycle" compiledTemplate: _.template ''' -Hi <%= first_name %>, thanks for signing up to ShareLaTeX. If you ever get lost, you can log in again here. +Hi <%= first_name %>, thanks for signing up to ShareLaTeX. If you ever get lost, you can log in again here.

I’m the co-founder of ShareLaTeX and I love talking to our users about our service. Please feel free to get in touch by replying to this email and I will get back to you within a day. @@ -64,7 +65,7 @@ If you didn't request a password reset, let us know.

Thank you

-

ShareLatex.com

+

ShareLatex.com

''' templates.projectSharedWithYou = @@ -86,13 +87,14 @@ templates.projectSharedWithYou =

Thank you

-

ShareLatex.com

+

ShareLatex.com

''' module.exports = buildEmail: (templateName, opts)-> template = templates[templateName] + opts.siteUrl = settings.siteUrl opts.body = template.compiledTemplate(opts) return { subject : template.subject(opts)