zulip/zerver
Lauryn Menard 06dd7a3a68 emails: Add corporate_enabled to context for emails.
In commit fc58c35c0, we added a check in various emails for the
settings.CORPORATE_ENABLED value, but that context is only always
included for views/templates with a request.

Here we add that to common_context, which is often used when there
is not a request (like with emails). And we manually add it to the
email context in various cases when there is not a user account to
call with common_context: new user invitations, registration emails,
and realm reactivation emails.
2023-05-01 10:32:43 -07:00
..
actions emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
data_import auth: Rewrite data model for tracking enabled auth backends. 2023-04-18 09:22:56 -07:00
integration_fixtures/nagios
lib scheduled_message: Send CRUD events to clients. 2023-04-28 17:25:00 -07:00
management requirements: Upgrade Python requirements. 2023-04-25 21:20:33 -07:00
migrations soft_reactivation: Add a partial index to speed up event lookups. 2023-04-28 12:43:34 -07:00
openapi api-docs: Document create/edit scheduled message endpoint and events. 2023-04-28 17:25:00 -07:00
tests populate-db: Add scheduled message to test database. 2023-04-28 17:25:00 -07:00
tornado tornado_url: Replace occurrences of `uri` with `url`. 2023-04-26 16:37:16 -07:00
views emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
webhooks settings: Replace occurrences of `uri` with `url`. 2023-04-26 16:37:16 -07:00
worker error_notify: Drop any remaining browser-side errors in RabbitMQ queue. 2023-04-13 14:59:58 -07:00
__init__.py
apps.py requirements: Upgrade Python requirements. 2023-04-03 22:39:21 -07:00
context_processors.py emails: Add corporate_enabled to context for emails. 2023-05-01 10:32:43 -07:00
decorator.py Remove statsd support. 2023-04-25 19:58:16 -07:00
filters.py
forms.py templates: Update text on /accounts/find. 2023-03-30 09:06:14 -07:00
logging_handlers.py python: Use Python 3.8 typing.{Protocol,TypedDict}. 2022-04-27 12:57:49 -07:00
middleware.py Remove statsd support. 2023-04-25 19:58:16 -07:00
models.py urls: Add new endpoint to create scheduled messages. 2023-04-28 17:25:00 -07:00
signals.py requirements: Upgrade to Django 4.0. 2022-07-13 16:07:17 -07:00