Scheduling infrastructure for absolutely everyone.
Added the optional Location information + fixed nonfunctional a tag
Alex van Andelb0ab75dff6d4
diff --git a/lib/emails/confirm-booked.ts b/lib/emails/confirm-booked.tsindex 868ad001f13..32c4569515f 100644--- a/lib/emails/confirm-booked.ts+++ b/lib/emails/confirm-booked.ts@@ -54,8 +54,10 @@ const html = (calEvent: CalendarEvent) => {<br />Your ${calEvent.type} with ${calEvent.organizer.name} at ${inviteeStart.format('h:mma')}(${calEvent.attendees[0].timeZone}) on ${inviteeStart.format('dddd, LL')} is scheduled.<br />- <br />- Additional notes:<br />+ <br />` + (+ calEvent.location ? `<strong>Location:</strong> ${calEvent.location}<br /><br />` : ''+ ) ++ `Additional notes:<br />${calEvent.description}</div>`;diff --git a/lib/emails/new-event.ts b/lib/emails/new-event.tsindex a7b92b8be94..54eea414b1a 100644--- a/lib/emails/new-event.ts+++ b/lib/emails/new-event.ts@@ -91,9 +91,16 @@ const html = (evt: CalendarEvent) => `${evt.type}<br /><br /><strong>Invitee Email:</strong><br />- <a href=\\"mailto:${evt.attendees[0].email}\\">${evt.attendees[0].email}</a><br />- <br />- <strong>Invitee Time Zone:</strong><br />+ <a href="mailto:${evt.attendees[0].email}">${evt.attendees[0].email}</a><br />+ <br />` ++ (+ evt.location ? `+ <strong>Location:</strong><br />+ ${evt.location}<br />+ <br />+ ` : ''+ ) ++ `<strong>Invitee Time Zone:</strong><br />${evt.attendees[0].timeZone}<br /><br /><strong>Additional notes:</strong><br />