mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
closes #4026
This commit is contained in:
@@ -140,20 +140,11 @@ var fallbackTransport;
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderAndTranslate(tpl, params, lang, callback) {
|
function renderAndTranslate(tpl, params, lang, callback) {
|
||||||
async.waterfall([
|
render(tpl, params, function(err, html) {
|
||||||
function(next) {
|
translator.translate(html, lang, function(translated) {
|
||||||
render('emails/partials/footer' + (tpl.indexOf('_plaintext') !== -1 ? '_plaintext' : ''), params, next);
|
callback(err, translated);
|
||||||
},
|
});
|
||||||
function(footer, next) {
|
});
|
||||||
params.footer = footer;
|
|
||||||
render(tpl, params, next);
|
|
||||||
},
|
|
||||||
function(html, next) {
|
|
||||||
translator.translate(html, lang, function(translated) {
|
|
||||||
next(null, translated);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
], callback);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function getHostname() {
|
function getHostname() {
|
||||||
|
|||||||
@@ -42,7 +42,7 @@
|
|||||||
<a href="{url}">[[email:digest.cta, {site_title}]]</a>
|
<a href="{url}">[[email:digest.cta, {site_title}]]</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -8,4 +8,4 @@
|
|||||||
<a href="{registerLink}">[[email:invitation.ctr]]</a>
|
<a href="{registerLink}">[[email:invitation.ctr]]</a>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<a href="{url}/chats/{fromUserslug}">[[email:notif.chat.cta]]</a>
|
<a href="{url}/chats/{fromUserslug}">[[email:notif.chat.cta]]</a>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
<a href="{url}">[[email:notif.post.cta]]</a>
|
<a href="{url}">[[email:notif.post.cta]]</a>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[[email:closing]]
|
|
||||||
{site_title}
|
|
||||||
@@ -6,4 +6,4 @@
|
|||||||
|
|
||||||
<p>[[email:welcome.text3]]</p>
|
<p>[[email:welcome.text3]]</p>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
@@ -8,4 +8,4 @@
|
|||||||
<a href="{reset_link}">[[email:reset.cta]]</a>
|
<a href="{reset_link}">[[email:reset.cta]]</a>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
@@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
<p>[[email:reset.notify.text2]]</p>
|
<p>[[email:reset.notify.text2]]</p>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
<p>[[email:test.text1]]</p>
|
<p>[[email:test.text1]]</p>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
@@ -10,4 +10,4 @@
|
|||||||
<a href="{confirm_link}">[[email:welcome.cta]]</a>
|
<a href="{confirm_link}">[[email:welcome.cta]]</a>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
{footer}
|
<!-- IMPORT emails/partials/footer.tpl -->
|
||||||
Reference in New Issue
Block a user