Fixed padding

pull/330/head
nicolas 2021-06-30 00:31:30 +02:00
parent ae3aa275f7
commit e49c636a13
1 changed files with 21 additions and 22 deletions

View File

@ -38,11 +38,10 @@ export default class CalEventParser {
*/ */
public getChangeEventFooterHtml(): string { public getChangeEventFooterHtml(): string {
return ` return `
<br/>
<br/> <strong>Need to change this event?</strong>
<strong>Need to change this event?</strong><br /> Cancel: <a href="${this.getCancelLink()}">${this.getCancelLink()}</a>
Cancel: <a href="${this.getCancelLink()}">${this.getCancelLink()}</a><br /> Reschedule: <a href="${this.getRescheduleLink()}">${this.getRescheduleLink()}</a>
Reschedule: <a href="${this.getRescheduleLink()}">${this.getRescheduleLink()}</a>
`; `;
} }
@ -59,27 +58,27 @@ export default class CalEventParser {
* @protected * @protected
*/ */
public getRichDescriptionHtml(): string { public getRichDescriptionHtml(): string {
// This odd indentation is necessary because otherwise the leading tabs will be applied into the event description.
return ( return (
` `
<strong>Event Type:</strong><br /> <strong>Event Type:</strong>
${this.calEvent.type}<br /> ${this.calEvent.type}
<br />
<strong>Invitee Email:</strong><br /> <strong>Invitee Email:</strong>
<a href="mailto:${this.calEvent.attendees[0].email}">${this.calEvent.attendees[0].email}</a><br /> <a href="mailto:${this.calEvent.attendees[0].email}">${this.calEvent.attendees[0].email}</a>
<br />` +
` +
(this.calEvent.location (this.calEvent.location
? ` ? `<strong>Location:</strong>
<strong>Location:</strong><br /> ${this.calEvent.location}
${this.calEvent.location}<br />
<br /> `
`
: "") + : "") +
`<strong>Invitee Time Zone:</strong><br /> `<strong>Invitee Time Zone:</strong>
${this.calEvent.attendees[0].timeZone}<br /> ${this.calEvent.attendees[0].timeZone}
<br />
<strong>Additional notes:</strong><br /> <strong>Additional notes:</strong>
${this.calEvent.description} ${this.calEvent.description}` +
` +
this.getChangeEventFooterHtml() this.getChangeEventFooterHtml()
); );
} }