Hold /privacy behind a flag until counsel reads it, and fix leftover legal and email copy.
This commit is contained in:
1 parent
ead6c8f716
commit
072e5362f5
43 files changed
+548
-191
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { ASSETS, getAssetPath } from "../assetUtils";
|
||||
import { mailLegalFooterHtml, mailLegalFooterUrls } from "./mailLegalFooter";
|
||||
import {
|
||||
clipCommunityInviteDescription,
|
||||
communityInviteInitials,
|
||||
@@ -84,8 +85,7 @@ export function buildRuleStakeholderInviteMail(
|
||||
const why = `You got this email because ${inviterEmail} added your address to ${possessive} Rule on CommunityRule. If you do not know the community, you can ignore this email.`;
|
||||
const madeBy =
|
||||
"CommunityRule is made by the Media Economies Design Lab at the University of Colorado Boulder.";
|
||||
const privacyUrl = `${origin}/privacy`;
|
||||
const aboutUrl = `${origin}/about`;
|
||||
const { privacyUrl } = mailLegalFooterUrls(origin);
|
||||
const logoUrl = `${origin}${RULE_STAKEHOLDER_INVITE_LOGO_PATH}`;
|
||||
|
||||
const text = [
|
||||
@@ -106,7 +106,7 @@ export function buildRuleStakeholderInviteMail(
|
||||
why,
|
||||
"",
|
||||
madeBy,
|
||||
`Privacy ${privacyUrl}`,
|
||||
...(privacyUrl ? [`Privacy ${privacyUrl}`] : []),
|
||||
].join("\n");
|
||||
|
||||
const html = inviteHtml({
|
||||
@@ -123,8 +123,7 @@ export function buildRuleStakeholderInviteMail(
|
||||
copyLead,
|
||||
why,
|
||||
madeBy,
|
||||
privacyUrl,
|
||||
aboutUrl,
|
||||
origin,
|
||||
logoUrl,
|
||||
});
|
||||
|
||||
@@ -145,8 +144,7 @@ function inviteHtml(opts: {
|
||||
copyLead: string;
|
||||
why: string;
|
||||
madeBy: string;
|
||||
privacyUrl: string;
|
||||
aboutUrl: string;
|
||||
origin: string;
|
||||
logoUrl: string;
|
||||
}): string {
|
||||
const heading = escapeHtml(opts.subject);
|
||||
@@ -165,8 +163,6 @@ function inviteHtml(opts: {
|
||||
` of this one and change what does not fit.`;
|
||||
const why = escapeHtml(opts.why);
|
||||
const madeBy = escapeHtml(opts.madeBy);
|
||||
const privacyUrl = escapeHtml(opts.privacyUrl);
|
||||
const aboutUrl = escapeHtml(opts.aboutUrl);
|
||||
const logoUrl = escapeHtml(opts.logoUrl);
|
||||
const cardBody = description
|
||||
? `<p style="margin:16px 0 0;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:18px;font-weight:500;color:#000000;">${description}</p>`
|
||||
@@ -236,9 +232,7 @@ function inviteHtml(opts: {
|
||||
<p style="margin:0 0 12px;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">${why}</p>
|
||||
<p style="margin:0 0 12px;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">${madeBy}</p>
|
||||
<p style="margin:0;font-family:Inter,Arial,sans-serif;font-size:14px;line-height:20px;color:#464646;">
|
||||
<a href="${privacyUrl}" style="color:#464646;text-decoration:underline;">Privacy</a>
|
||||
|
||||
<a href="${aboutUrl}" style="color:#464646;text-decoration:underline;">About CommunityRule</a>
|
||||
${mailLegalFooterHtml(opts.origin)}
|
||||
</p>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user