Translate welcome mail
This commit is contained in:
@@ -2,25 +2,24 @@
|
|||||||
|
|
||||||
<img src="<%= cloudronAvatarUrl %>" width="128px" height="128px"/>
|
<img src="<%= cloudronAvatarUrl %>" width="128px" height="128px"/>
|
||||||
|
|
||||||
<h3>Hi <%= user.displayName || user.username || user.email %>,</h3>
|
<h3>{{ welcomeEmail.salutation }}</h3>
|
||||||
|
|
||||||
<h2>{{ welcomeEmail.welcomeTo }}</h2>
|
<h2>{{ welcomeEmail.welcomeTo }}</h2>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<a href="<%= inviteLink %>">Get started</a>.
|
<a href="<%= inviteLink %>">{{ welcomeEmail.inviteLinkAction }}</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
<div style="font-size: 10px; color: #333333; background: #ffffff;">
|
<div style="font-size: 10px; color: #333333; background: #ffffff;">
|
||||||
<% if (invitor && invitor.email) { %>
|
<% if (invitor) { -%>
|
||||||
You are receiving this email because you were invited by <%= invitor.email %>.
|
{{ welcomeEmail.invitor }}
|
||||||
<% } %>
|
<% } -%>
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Please note that the invite link will expire in 7 days.
|
{{ welcomeEmail.expireNote }}
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
Powered by <a href="https://cloudron.io">Cloudron</a>
|
Powered by <a href="https://cloudron.io">Cloudron</a>
|
||||||
|
|||||||
@@ -1,14 +1,13 @@
|
|||||||
Dear <%= user.displayName || user.username || user.email %>,
|
{{ welcomeEmail.salutation }}
|
||||||
|
|
||||||
Welcome to <%= cloudronName %>!
|
{{ welcomeEmail.welcomeTo }}
|
||||||
|
|
||||||
Follow the link to get started.
|
{{ welcomeEmail.inviteLinkActionText }}
|
||||||
<%- inviteLink %>
|
|
||||||
|
|
||||||
<% if (invitor && invitor.email) { %>
|
<% if (invitor) { %>
|
||||||
You are receiving this email because you were invited by <%= invitor.email %>.
|
{{ welcomeEmail.invitor }}
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
Please note that the invite link will expire in 7 days.
|
{{ welcomeEmail.expireNote }}
|
||||||
|
|
||||||
Powered by https://cloudron.io
|
Powered by https://cloudron.io
|
||||||
|
|||||||
+2
-2
@@ -147,10 +147,10 @@ function sendInvite(user, invitor, inviteLink) {
|
|||||||
if (error) return debug('Error getting translations:', error);
|
if (error) return debug('Error getting translations:', error);
|
||||||
|
|
||||||
var templateData = {
|
var templateData = {
|
||||||
user: user,
|
user: user.displayName || user.username || user.email,
|
||||||
webadminUrl: settings.adminOrigin(),
|
webadminUrl: settings.adminOrigin(),
|
||||||
inviteLink: inviteLink,
|
inviteLink: inviteLink,
|
||||||
invitor: invitor,
|
invitor: invitor ? invitor.email : null,
|
||||||
cloudronName: mailConfig.cloudronName,
|
cloudronName: mailConfig.cloudronName,
|
||||||
cloudronAvatarUrl: settings.adminOrigin() + '/api/v1/cloudron/avatar'
|
cloudronAvatarUrl: settings.adminOrigin() + '/api/v1/cloudron/avatar'
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user