mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-08 18:23:39 +00:00
The receipt email that SOGo generates and sends to the organizer after they create a new calendar event with attendees, displays an empty table in case the attendees have no display name. The email address is only used in an a tag's href attribute which is not visible to the user when the HTML email is rendered. This commit adapts SOGoAptMailReceipt.wox to use the email address as content of the a tags in case the display name is not set. This is done in the same way as SOGoAptMailReminder.wox already does it.
101 lines
3.8 KiB
XML
101 lines
3.8 KiB
XML
<?xml version="1.0" standalone="yes"?>
|
|
<!DOCTYPE container>
|
|
<html
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
xmlns:rsrc="OGo:url"
|
|
xmlns:label="OGo:label">
|
|
|
|
<head>
|
|
<style type="text/css">
|
|
th, td { font-family: Lucida Grande, Bitstream VeraSans, Tahoma, sans-serif; font-size: 12px; line-height: 18px; }
|
|
th { font-weight: bold; white-space: nowrap; vertical-align: top; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<table cellpadding="2" cellspacing="2" border="0" style="width: 100%; max-width: 600px;">
|
|
<tr>
|
|
<th></th>
|
|
<td><h1 style="font-size: 18px; font-weight: normal; padding-bottom: 9px; border-bottom: 1px solid #ccc;"><var:string
|
|
value="aptSummary"/></h1></td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right"><var:string label:value="calendar_label"/></th>
|
|
<td><var:string value="calendarName"/></td>
|
|
</tr>
|
|
<var:if condition="apt.location.length"
|
|
><tr>
|
|
<th align="right"><var:string label:value="location_label"/></th>
|
|
<td><var:string value="apt.location"/></td>
|
|
</tr></var:if>
|
|
<var:if condition="aptStartDate.length"
|
|
><tr>
|
|
<th align="right"><var:string label:value="startDate_label"/></th>
|
|
<td><var:string value="aptStartDate"/></td>
|
|
</tr></var:if>
|
|
<var:if condition="aptEndDate.length"
|
|
><tr>
|
|
<th align="right"><var:string label:value="endDate_label"/></th>
|
|
<td><var:string value="aptEndDate"/></td>
|
|
</tr></var:if>
|
|
|
|
<var:if condition="updatedAttendees.count"
|
|
><tr>
|
|
<td></td>
|
|
<th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
|
|
label:value="The following attendees(s) were notified"/></th>
|
|
</tr>
|
|
<var:foreach list="updatedAttendees" item="currentRecipient">
|
|
<tr>
|
|
<td></td>
|
|
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
|
|
</tr></var:foreach>
|
|
</var:if>
|
|
|
|
<var:if condition="addedAttendees.count"
|
|
><tr>
|
|
<td></td>
|
|
<th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
|
|
label:value="The following attendees(s) were added"/></th>
|
|
</tr>
|
|
<var:foreach list="addedAttendees" item="currentRecipient">
|
|
<tr>
|
|
<td></td>
|
|
<var:if condition="currentRecipient.cn">
|
|
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
|
|
</var:if>
|
|
<var:if condition="currentRecipient.cn" const:negate="YES">
|
|
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.rfc822Email" const:escapeHTML="NO"/></a></td>
|
|
</var:if>
|
|
|
|
</tr></var:foreach>
|
|
</var:if>
|
|
|
|
<var:if condition="deletedAttendees.count"
|
|
><tr>
|
|
<td></td>
|
|
<th align="left" style="font-weight: bold; padding-top: 9px;"><var:string
|
|
label:value="The following attendees(s) were removed"/></th>
|
|
</tr>
|
|
<var:foreach list="deletedAttendees" item="currentRecipient">
|
|
<tr>
|
|
<td></td>
|
|
<var:if condition="currentRecipient.cn">
|
|
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.cn" const:escapeHTML="NO"/></a></td>
|
|
</var:if>
|
|
<var:if condition="currentRecipient.cn" const:negate="YES">
|
|
<td><a var:href="currentRecipient.email"><var:string value="currentRecipient.rfc822Email" const:escapeHTML="NO"/></a></td>
|
|
</var:if>
|
|
|
|
</tr></var:foreach>
|
|
</var:if>
|
|
<var:if condition="apt.comment.length"
|
|
><tr>
|
|
<th align="right"><var:string label:value="comment_label"/></th>
|
|
<td><var:string value="apt.comment" const:escapeHTML="NO"/></td>
|
|
</tr></var:if>
|
|
</table>
|
|
</body>
|
|
</html>
|