Files
cloudron-box/src/mail_templates/app_updates_available.ejs
T

63 lines
1.7 KiB
Plaintext
Raw Normal View History

<%if (format === 'text') { %>
Dear Cloudron Admin,
<% for (var i = 0; i < apps.length; i++) { -%>
2019-05-30 12:17:47 -07:00
A new version <%= apps[i].updateInfo.manifest.version %> of the app '<%= apps[i].app.manifest.title %>' installed at <%= apps[i].app.fqdn %> is available.
2016-02-04 14:45:43 +01:00
Changes:
<%= apps[i].updateInfo.manifest.changelog %>
2019-05-06 22:42:18 +02:00
<% } -%>
2016-02-04 14:45:43 +01:00
2017-11-02 18:31:51 -07:00
<% if (!hasSubscription) { -%>
*Keep your Cloudron automatically up-to-date and secure by upgrading to a paid plan at* <%= webadminUrl %>/#/settings
2019-05-06 22:42:18 +02:00
<% } else { -%>
Update now at <%= webadminUrl %>
2017-11-02 18:31:51 -07:00
<% } -%>
Powered by https://cloudron.io
2017-01-26 12:46:56 -08:00
Sent at: <%= new Date().toUTCString() %>
<% } else { %>
2017-11-02 18:31:51 -07:00
<center>
<img src="<%= cloudronAvatarUrl %>" width="128px" height="128px"/>
<h3>Dear <%= cloudronName %> Admin,</h3>
<div style="width: 650px; text-align: left;">
<% for (var i = 0; i < apps.length; i++) { -%>
2017-11-02 18:31:51 -07:00
<p>
2019-05-30 12:17:47 -07:00
A new version <%= apps[i].updateInfo.manifest.version %> of the app '<%= apps[i].app.manifest.title %>' installed at <a href="https://<%= apps[i].app.fqdn %>"><%= apps[i].app.fqdn %></a> is available.
2017-11-02 18:31:51 -07:00
</p>
<h5>Changelog:</h5>
<%- apps[i].changelogHTML %>
2017-11-02 18:31:51 -07:00
<br/>
<% } -%>
2017-11-02 18:31:51 -07:00
<% if (!hasSubscription) { %>
<p>Keep your Cloudron automatically up-to-date and secure by upgrading to a <a href="<%= webadminUrl %>/#/settings">paid plan</a>.</p>
2019-05-06 22:42:18 +02:00
<% } else { -%>
<p>
<br/>
<center><a href="<%= webadminUrl %>">Update now</a></center>
<br/>
</p>
<% } -%>
2017-11-02 18:31:51 -07:00
<br/>
</div>
<div style="font-size: 10px; color: #333333; background: #ffffff;">
Powered by <a href="https://cloudron.io">Cloudron</a>.
</div>
</center>
<% } %>