2016-12-15 12:22:39 -05:00
|
|
|
_ = require("underscore")
|
|
|
|
settings = require "settings-sharelatex"
|
|
|
|
|
|
|
|
module.exports = _.template """
|
|
|
|
<table class="row" style="border-collapse: collapse; border-spacing: 0; display: table; padding: 0; position: relative; text-align: left; vertical-align: top; width: 100%;"><tbody><tr style="padding: 0; text-align: left; vertical-align: top;">
|
2019-02-12 06:16:47 -05:00
|
|
|
<th class="small-12 large-12 columns first last" style="Margin: 0 auto; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0 auto; padding: 0; padding-bottom: 16px; padding-left: 16px; padding-right: 16px; text-align: left; width: 564px;"><table style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tr style="padding: 0; text-align: left; vertical-align: top;"><th style="Margin: 0; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left;">
|
2018-06-19 08:52:56 -04:00
|
|
|
<% if (title) { %>
|
2019-02-12 06:16:47 -05:00
|
|
|
<h3 class="avoid-auto-linking" style="Margin: 0; color: #5D6879; font-family: Georgia, serif; font-size: 24px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0; text-align: left; word-wrap: normal;">
|
2018-06-19 08:52:56 -04:00
|
|
|
<%= title %>
|
|
|
|
</h3>
|
|
|
|
<% } %>
|
2019-02-12 06:16:47 -05:00
|
|
|
<table class="spacer" style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tbody><tr style="padding: 0; text-align: left; vertical-align: top;"><td height="20px" style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; border-collapse: collapse !important; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"> </td></tr></tbody></table>
|
2018-06-19 08:52:56 -04:00
|
|
|
<% if (greeting) { %>
|
2019-02-12 06:16:47 -05:00
|
|
|
<p style="Margin: 0; Margin-bottom: 10px; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; margin-bottom: 10px; padding: 0; text-align: left;">
|
2018-06-19 08:52:56 -04:00
|
|
|
<%= greeting %>
|
|
|
|
</p>
|
|
|
|
<% } %>
|
2019-02-12 06:16:47 -05:00
|
|
|
<p class="avoid-auto-linking" style="Margin: 0; Margin-bottom: 10px; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; margin-bottom: 10px; padding: 0; text-align: left;">
|
2016-12-15 12:22:39 -05:00
|
|
|
<%= message %>
|
|
|
|
</p>
|
2019-02-12 06:16:47 -05:00
|
|
|
<table class="spacer" style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tbody><tr style="padding: 0; text-align: left; vertical-align: top;"><td height="20px" style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; border-collapse: collapse !important; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"> </td></tr></tbody></table>
|
2016-12-15 12:22:39 -05:00
|
|
|
<center data-parsed="" style="min-width: 532px; width: 100%;">
|
2019-02-12 06:16:47 -05:00
|
|
|
<table class="button float-center" style="Margin: 0 0 16px 0; border-collapse: collapse; border-spacing: 0; float: none; margin: 0 0 16px 0; padding: 0; text-align: center; vertical-align: top; width: auto;"><tr style="padding: 0; text-align: left; vertical-align: top;"><td style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; border-collapse: collapse !important; border-radius: 9999px; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"><table style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tr style="padding: 0; text-align: left; vertical-align: top;"><td style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; background: #4F9C45; border: none; border-collapse: collapse !important; border-radius: 9999px; color: #fefefe; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; hyphens: auto; line-height: 1.3; margin: 0; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;">
|
|
|
|
<a href="<%= ctaURL %>" style="Margin: 0; border: 0 solid #4F9C45; border-radius: 9999px; color: #fefefe; display: inline-block; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: bold; line-height: 1.3; margin: 0; padding: 8px 16px 8px 16px; text-align: left; text-decoration: none;">
|
2016-12-16 05:06:56 -05:00
|
|
|
<%= ctaText %>
|
|
|
|
</a>
|
2016-12-15 12:22:39 -05:00
|
|
|
</td></tr></table></td></tr></table>
|
|
|
|
</center>
|
2016-12-16 07:16:33 -05:00
|
|
|
<% if (secondaryMessage) { %>
|
2019-02-12 06:16:47 -05:00
|
|
|
<table class="spacer" style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tbody><tr style="padding: 0; text-align: left; vertical-align: top;"><td height="20px" style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; border-collapse: collapse !important; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"> </td></tr></tbody></table>
|
|
|
|
<p class="avoid-auto-linking" style="Margin: 0; Margin-bottom: 10px; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; margin-bottom: 10px; padding: 0; text-align: left;">
|
2016-12-16 07:16:33 -05:00
|
|
|
<%= secondaryMessage %>
|
|
|
|
</p>
|
|
|
|
<% } %>
|
2018-10-05 07:04:00 -04:00
|
|
|
<table class="spacer" style="border-collapse: collapse; border-spacing: 0; padding: 0; text-align: left; vertical-align: top; width: 100%;"><tbody><tr style="padding: 0; text-align: left; vertical-align: top;"><td height="20px" style="-moz-hyphens: auto; -webkit-hyphens: auto; Margin: 0; border-collapse: collapse !important; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: normal; hyphens: auto; line-height: 20px; margin: 0; mso-line-height-rule: exactly; padding: 0; text-align: left; vertical-align: top; word-wrap: break-word;"> </td></tr></tbody></table>
|
|
|
|
<p class="avoid-auto-linking" style="Margin: 0; Margin-bottom: 10px; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 12px; font-weight: normal; margin: 0; margin-bottom: 10px; padding: 0; text-align: left;">
|
|
|
|
If the button above does not appear, please open the link in your browser here:<br>
|
|
|
|
<a href="<%= ctaURL %>"><%= ctaURL %></a>
|
|
|
|
</p>
|
2016-12-15 12:22:39 -05:00
|
|
|
</th>
|
2019-02-12 06:16:47 -05:00
|
|
|
<th class="expander" style="Margin: 0; color: #5D6879; font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; line-height: 1.3; margin: 0; padding: 0 !important; text-align: left; visibility: hidden; width: 0;"></th></tr></table></th>
|
2016-12-15 12:22:39 -05:00
|
|
|
</tr></tbody></table>
|
2016-12-16 12:04:26 -05:00
|
|
|
<% if (gmailGoToAction) { %>
|
|
|
|
<script type="application/ld+json">
|
|
|
|
{
|
|
|
|
"@context": "http://schema.org",
|
|
|
|
"@type": "EmailMessage",
|
|
|
|
"potentialAction": {
|
|
|
|
"@type": "ViewAction",
|
|
|
|
"target": "<%= gmailGoToAction.target %>",
|
|
|
|
"url": "<%= gmailGoToAction.target %>",
|
|
|
|
"name": "<%= gmailGoToAction.name %>"
|
|
|
|
},
|
|
|
|
"description": "<%= gmailGoToAction.description %>"
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<% } %>
|
2019-02-12 06:16:47 -05:00
|
|
|
"""
|