% if (format === 'text') { -%> Dear <%= cloudronName %> Admin, This is a summary of the activities on your Cloudron. <% if (info.usersAdded.length) { -%> The following users were added: <% for (var i = 0; i < info.usersAdded.length; i++) { -%> * <%- info.usersAdded[i].email %> <% }} -%> <% if (info.certRenewals.length) { -%> The certificates of the following apps was renewed: <% for (var i = 0; i < info.certRenewals.length; i++) { -%> * <%- info.certRenewals[i].domain %> - <%- info.certRenewals[i].errorMessage || 'Success' %> <% }} -%> <% if (info.pendingBoxUpdate) { -%> Cloudron v<%- info.pendingBoxUpdate.version %> is available: <% for (var i = 0; i < info.pendingBoxUpdate.changelog.length; i++) { -%> * <%- info.pendingBoxUpdate.changelog[i] %> <% }} -%> <% if (info.pendingAppUpdates.length) { -%> One or more app updates are available: <% for (var i = 0; i < info.pendingAppUpdates.length; i++) { -%> - <%= info.pendingAppUpdates[i].manifest.title %> package v<%= info.pendingAppUpdates[i].manifest.version %> <% for (var j = 0; j < info.pendingAppUpdates[i].manifest.changelog.trim().split('\n').length; j++) { -%> <%= info.pendingAppUpdates[i].manifest.changelog.trim().split('\n')[j] %> <% }}} -%> <% if (info.finishedBoxUpdates.length) { -%> Cloudron was updated with the following releases: <% for (var i = 0; i < info.finishedBoxUpdates.length; i++) { -%> - Version <%= info.finishedBoxUpdates[i].boxUpdateInfo.version %> <% for (var j = 0; j < info.finishedBoxUpdates[i].boxUpdateInfo.changelog.length; j++) { -%> * <%= info.finishedBoxUpdates[i].boxUpdateInfo.changelog[j] %> <% }}} -%> <% if (info.finishedAppUpdates.length) { -%> The following apps were updated: <% for (var i = 0; i < info.finishedAppUpdates.length; i++) { -%> - <%= info.finishedAppUpdates[i].toManifest.title %> package v<%= info.finishedAppUpdates[i].toManifest.version %> <% for (var j = 0; j < info.finishedAppUpdates[i].toManifest.changelog.trim().split('\n').length; j++) { -%> <%= info.finishedAppUpdates[i].toManifest.changelog.trim().split('\n')[j] %> <% }}} -%> <% if (info.finishedBackups.length) { -%> Last successful backup: <%- info.finishedBackups[0].backupId || info.finishedBackups[0].filename %> <% } else { -%> This Cloudron did **not** backup successfully in the last week! <% } -%> <% if (!info.hasSubscription) { -%> *Keep your Cloudron automatically up-to-date and secure by upgrading to a paid plan at* <%= webadminUrl %>/#/settings <% } -%> Powered by https://cloudron.io Sent at: <%= new Date().toUTCString() %> <% } else { %>
This is a summary of the activities on your Cloudron <%= cloudronName %> last week.
<% if (info.usersAdded.length) { -%>The following users were added:
The certificates of the following apps were renewed:
Cloudron v<%- info.pendingBoxUpdate.version %> is available:
Available app updates:
Your Cloudron was updated with the following releases:
The following apps were updated:
Last successful backup : <%= info.finishedBackups[0].backupId || info.finishedBackups[0].filename %>
<% } else { %>This Cloudron did not backup successfully in the last week!
<% } %>