zulip/templates
Lauryn Menard 673a01ea0c realm-deactivation: Send email to owners as part of deactivation.
Creates a new "realm_deactivated" email that can be sent to realm
owners as part of `do_deactivate_realm`, via a boolean flag,
`email_owners`.

This flag is set to `False` when `do_deactivate_realm` is used for
realm exports or changing a realm's subdomain, so that the active
organization owners are not emailed in those cases.

This flag is optional for the `deactivate_realm` management command,
but as there is no active user passed in that case, then the email
is sent without referencing who deactivated the realm.

It is passed as `True` for the support analytics view, but the email
that is generated does not include information about the support
admin user who completed the request for organization deactivation.

When an active organization owner deactivates the organization, then
the flag is `True` and an email is sent to them as well as any other
active organization owners, with a slight variation in the email text
for those two cases.

Adds specific tests for when `email_owners` is passed as `True`. All
existing tests for other functionality of `do_deactivate_user` pass
the flag as `False`.

Adds `localize` from django.util.formats as a jinja env filter so
that the dates in these emails are internationlized for the owner's
default language setting in the "realm_deactivated" email templates.

Fixes #24685.
2024-06-26 16:48:18 -07:00
..
analytics templates: Move support templates to /templates/corporate/support. 2024-01-30 10:06:48 -08:00
confirmation portico_error_pages: Collect zerver error pages into a folder. 2024-06-05 09:06:44 -07:00
corporate help: Refer to automatic/manual "billing" as "license management". 2024-06-13 07:00:39 -07:00
tests
two_factor css: Remove unused btn-block styles. 2024-01-25 18:35:38 -08:00
zerver realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
zilencer templates: Move remote_realm_server_mismatch_error.html to zerver. 2024-01-15 16:50:48 -08:00
.gitignore
4xx.html portico_error_pages: Collect zerver error pages into a folder. 2024-06-05 09:06:44 -07:00
404.html portico_error_pages: Collect zerver error pages into a folder. 2024-06-05 09:06:44 -07:00
500.html portico_error_pages: Collect zerver error pages into a folder. 2024-06-05 09:06:44 -07:00