Skip to content

Commit

Permalink
Remove the download invite button since it doesn't work on all mail c…
Browse files Browse the repository at this point in the history
…lients.
  • Loading branch information
MelissaAutumn committed Aug 15, 2024
1 parent a2c7074 commit 08d757c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/appointment/controller/mailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def html(self):
calendar_icon_cid=self._attachments()[0].filename,
clock_icon_cid=self._attachments()[1].filename,
# Calendar ics cid
invite_cid=self._attachments()[2].filename,
#invite_cid=self._attachments()[2].filename,
)


Expand Down
2 changes: 1 addition & 1 deletion backend/src/appointment/l10n/en/email.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ invite-mail-html-heading-name = { $name }
invite-mail-html-heading-email = ({ $email })
invite-mail-html-heading-text = has accepted your booking:
invite-mail-html-time = { $duration } mins
invite-mail-html-invite-is-attached = You can download the calendar invite file below:
invite-mail-html-invite-is-attached = Your calendar invite is attached.
invite-mail-html-download = Download
## New Booking
Expand Down
3 changes: 3 additions & 0 deletions backend/src/appointment/templates/email/invite.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
<p style="margin: 12px;">
{{ l10n('invite-mail-html-invite-is-attached') }}
</p>
{#
# This doesn't work Apple Mail, and it also hides the attachment...bleh.
<div style="margin-bottom: 12px">
<a
href="cid:{{ invite_cid }}"
Expand All @@ -67,4 +69,5 @@
"
>{{ l10n('invite-mail-html-download') }}</a>
</div>
#}
{% endblock %}

0 comments on commit 08d757c

Please sign in to comment.