v1.18.x
psychobunny 9 years ago
parent 1dba781923
commit 75917e25b3

@ -140,20 +140,11 @@ var fallbackTransport;
}
function renderAndTranslate(tpl, params, lang, callback) {
async.waterfall([
function(next) {
render('emails/partials/footer' + (tpl.indexOf('_plaintext') !== -1 ? '_plaintext' : ''), params, next);
},
function(footer, next) {
params.footer = footer;
render(tpl, params, next);
},
function(html, next) {
translator.translate(html, lang, function(translated) {
next(null, translated);
});
}
], callback);
render(tpl, params, function(err, html) {
translator.translate(html, lang, function(translated) {
callback(err, translated);
});
});
}
function getHostname() {

@ -42,7 +42,7 @@
<a href="{url}">[[email:digest.cta, {site_title}]]</a>
</p>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->
<hr />
<p>

@ -8,4 +8,4 @@
<a href="{registerLink}">[[email:invitation.ctr]]</a>
</blockquote>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->

@ -5,7 +5,7 @@
<a href="{url}/chats/{fromUserslug}">[[email:notif.chat.cta]]</a>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->
<hr />
<p>

@ -5,7 +5,7 @@
<a href="{url}">[[email:notif.post.cta]]</a>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->
<hr />
<p>

@ -1,2 +0,0 @@
[[email:closing]]
{site_title}

@ -6,4 +6,4 @@
<p>[[email:welcome.text3]]</p>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->

@ -8,4 +8,4 @@
<a href="{reset_link}">[[email:reset.cta]]</a>
</blockquote>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->

@ -4,4 +4,4 @@
<p>[[email:reset.notify.text2]]</p>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->

@ -2,4 +2,4 @@
<p>[[email:test.text1]]</p>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->

@ -10,4 +10,4 @@
<a href="{confirm_link}">[[email:welcome.cta]]</a>
</blockquote>
{footer}
<!-- IMPORT emails/partials/footer.tpl -->
Loading…
Cancel
Save