mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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>
28 lines
955 B
HTML
28 lines
955 B
HTML
{% extends "zerver/emails/email_base_default.html" %}
|
|
|
|
{% block illustration %}
|
|
<img src="{{ email_images_base_uri }}/invitation_reminder.png" alt=""/>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<p>{{ _("Hi again,") }}</p>
|
|
|
|
<p>{% trans referrer_name=macros.referrer_email_tag(referrer_email, referrer_name) %}This is a friendly reminder that {{ referrer_name }} wants you to join them on Zulip — the team communication tool designed for productivity.{% endtrans %}</p>
|
|
|
|
<p>
|
|
{{ _("To get started, click the button below.") }}
|
|
<a class="button" href="{{ activate_url }}">{{ _("Complete registration") }}</a>
|
|
</p>
|
|
|
|
<p>
|
|
{{ _("This is the last reminder you'll receive for this invitation.") }}
|
|
</p>
|
|
|
|
<p>
|
|
{% trans referrer_name=macros.email_tag(referrer_email, referrer_name) %}
|
|
This invitation expires in two days. If the invitation expires,
|
|
you'll need to ask {{ referrer_name }} for another one.
|
|
{% endtrans %}
|
|
</p>
|
|
{% endblock %}
|