Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emails: Update realm_reactivation email for demo organizations.
Lauryn Menard84915c0bd9bf
diff --git a/templates/zerver/emails/realm_reactivation.html b/templates/zerver/emails/realm_reactivation.htmlindex 7d57e649645..b87e0e2d1b9 100644--- a/templates/zerver/emails/realm_reactivation.html+++ b/templates/zerver/emails/realm_reactivation.html@@ -7,7 +7,11 @@{% block content %}<p>{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}</p>+{% if is_demo_organization %}+<p>{% trans realm_url=macros.link_tag(realm_url) %}One of your administrators requested reactivation of the previously deactivated Zulip demo organization hosted at {{ realm_url }}.{% endtrans %}</p>+{% else %}<p>{% trans realm_url=macros.link_tag(realm_url) %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_url }}.{% endtrans %}</p>+{% endif %}<p>{{ _('Click the button below to reactivate your organization.') }}diff --git a/templates/zerver/emails/realm_reactivation.subject.txt b/templates/zerver/emails/realm_reactivation.subject.txtindex 8e8d8e719ba..790934850e5 100644--- a/templates/zerver/emails/realm_reactivation.subject.txt+++ b/templates/zerver/emails/realm_reactivation.subject.txt@@ -1 +1,5 @@+{% if is_demo_organization %}+{% trans %}Reactivate your Zulip demo organization{% endtrans %}+{% else %}{% trans %}Reactivate your Zulip organization{% endtrans %}+{% endif %}diff --git a/templates/zerver/emails/realm_reactivation.txt b/templates/zerver/emails/realm_reactivation.txtindex 2da9501aa53..42f26120125 100644--- a/templates/zerver/emails/realm_reactivation.txt+++ b/templates/zerver/emails/realm_reactivation.txt@@ -1,7 +1,11 @@{% trans %}Dear former administrators of {{ realm_name }},{% endtrans %}+{% if is_demo_organization %}+{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip demo organization hosted at {{ realm_url }}.{% endtrans %}+{% else %}{% trans %}One of your administrators requested reactivation of the previously deactivated Zulip organization hosted at {{ realm_url }}.{% endtrans %}+{% endif %}{{ _('Click the link below to reactivate your organization.') }}diff --git a/zerver/actions/realm_settings.py b/zerver/actions/realm_settings.pyindex ffecc299d0d..8eb8297586d 100644--- a/zerver/actions/realm_settings.py+++ b/zerver/actions/realm_settings.py@@ -943,6 +943,7 @@ def do_send_realm_reactivation_email(realm: Realm, *, acting_user: UserProfile |"realm_url": realm.url,"realm_name": realm.name,"corporate_enabled": settings.CORPORATE_ENABLED,+ "is_demo_organization": realm.demo_organization_scheduled_deletion_date is not None,}language = realm.default_languagesend_email_to_admins(