zulip/templates/zerver/emails
Daniil Fadeev 2f203f4de1 emails: Inline CSS in emails in build_email.
Previously, we had an architecture where CSS inlining for emails was
done at provision time in inline_email_css.py. This was necessary
because the library we were using for this, Premailer, was extremely
slow, and doing the inlining for every outgoing email would have been
prohibitively expensive.

Now that we've migrated to a more modern library that inlines the
small amount of CSS we have into emails nearly instantly, we are able
to remove the complex architecture built to work around Premailer
being slow and just do the CSS inlining as the final step in sending
each individual email.

This has several significant benefits:

* Removes a fiddly provisioning step that made the edit/refresh cycle
  for modifying email templates confusing; there's no longer a CSS
  inlining step that, if you forget to do it, results in your testing a
  stale variant of the email templates.
* Fixes internationalization problems related to translators working
  with pre-CSS-inlined emails, and then Django trying to apply the
  translators to the post-CSS-inlined version.
* Makes the send_custom_email pipeline simpler and easier to improve.

Signed-off-by: Daniil Fadeev <fadeevd@zulip.com>
2023-04-05 12:22:29 -07:00
..
.gitignore
confirm_new_email.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
confirm_new_email.subject.txt
confirm_new_email.txt emails: Remove username from email change confirmation. 2021-11-04 17:51:37 -07:00
confirm_registration.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
confirm_registration.subject.txt emails: Make it obvious when registering creates new realm. 2021-06-02 15:18:03 -07:00
confirm_registration.txt emails: Make it obvious when registering creates new realm. 2021-06-02 15:18:03 -07:00
custom_email_base.pre.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
deactivate.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
deactivate.subject.txt settings: Send email after deactivating user. 2022-08-06 21:41:53 -07:00
deactivate.txt settings: Send email after deactivating user. 2022-08-06 21:41:53 -07:00
digest.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
digest.subject.txt
digest.txt
email.css dependencies: Upgrade JavaScript dependencies. 2023-04-04 10:54:01 -07:00
email_base_default.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
email_base_marketing.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
email_base_messages.html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
find_team.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
find_team.subject.txt find_team: Send one email per email address, not per organization. 2021-09-21 15:56:50 -07:00
find_team.txt find_accounts: Thank the user for their request in the email. 2021-09-24 12:23:01 -07:00
followup_day1.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
followup_day1.subject.txt
followup_day1.txt web: Save a needless 301 redirect from /apps to /apps/. 2023-03-24 14:51:01 -07:00
followup_day2.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
followup_day2.subject.txt
followup_day2.txt
invitation.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
invitation.subject.txt emails: Use 'has invited you' phrasing for invitations. 2021-05-26 11:41:13 -07:00
invitation.txt
invitation_reminder.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
invitation_reminder.subject.txt
invitation_reminder.txt
macros.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
missed_message.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
missed_message.subject.txt user_settings: Automate 'Include realm name in message email subject'. 2023-03-14 17:48:57 -07:00
missed_message.txt email_notifications: Change missed message for wildcard mention. 2022-09-29 15:55:14 -07:00
notify_change_in_email.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
notify_change_in_email.subject.txt
notify_change_in_email.txt
notify_new_login.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
notify_new_login.subject.txt
notify_new_login.txt
password_reset.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
password_reset.subject.txt
password_reset.txt
realm_auto_downgraded.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
realm_auto_downgraded.subject.txt billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
realm_auto_downgraded.txt billing: Downgrade small realms that are behind on payments. 2021-07-02 13:19:12 -07:00
realm_reactivation.html emails: Inline CSS in emails in build_email. 2023-04-05 12:22:29 -07:00
realm_reactivation.subject.txt
realm_reactivation.txt
sponsorship_request.html templates: Mark all void tags as self-closing. 2021-04-21 09:49:34 -07:00
sponsorship_request.subject.txt
sponsorship_request.txt
stylelint.config.js
support_request.html corporate: Add contact support page. 2021-10-01 17:30:01 -07:00
support_request.subject.txt corporate: Add contact support page. 2021-10-01 17:30:01 -07:00
support_request.txt corporate: Add contact support page. 2021-10-01 17:30:01 -07:00