mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add support for GMail go-to actions in the single CTA template.
This commit is contained in:
parent
869f729132
commit
d6fcc21ab5
2 changed files with 21 additions and 0 deletions
|
@ -31,4 +31,19 @@ module.exports = _.template """
|
||||||
</th>
|
</th>
|
||||||
<th class="expander" style="Margin: 0; color: #0a0a0a; 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>
|
<th class="expander" style="Margin: 0; color: #0a0a0a; 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>
|
||||||
</tr></tbody></table>
|
</tr></tbody></table>
|
||||||
|
<% 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>
|
||||||
|
<% } %>
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -92,6 +92,7 @@ Thank you
|
||||||
secondaryMessage: "If you ignore this message, your password won't be changed.<br>If you didn't request a password reset, let us know."
|
secondaryMessage: "If you ignore this message, your password won't be changed.<br>If you didn't request a password reset, let us know."
|
||||||
ctaText: "Reset password"
|
ctaText: "Reset password"
|
||||||
ctaURL: opts.setNewPasswordUrl
|
ctaURL: opts.setNewPasswordUrl
|
||||||
|
gmailGoToAction: null
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -116,6 +117,10 @@ Thank you
|
||||||
secondaryMessage: null
|
secondaryMessage: null
|
||||||
ctaText: "View project"
|
ctaText: "View project"
|
||||||
ctaURL: opts.inviteUrl
|
ctaURL: opts.inviteUrl
|
||||||
|
gmailGoToAction:
|
||||||
|
target: opts.inviteUrl
|
||||||
|
name: "View project"
|
||||||
|
description: "Join #{ opts.project.name } at ShareLaTeX"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
@ -141,6 +146,7 @@ Thank You
|
||||||
secondaryMessage: null
|
secondaryMessage: null
|
||||||
ctaText: "Verify now"
|
ctaText: "Verify now"
|
||||||
ctaURL: opts.completeJoinUrl
|
ctaURL: opts.completeJoinUrl
|
||||||
|
gmailGoToAction: null
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports =
|
module.exports =
|
||||||
|
|
Loading…
Reference in a new issue