Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

jinja2: Make sure that 500 pages have support_email set.

Alex Vandivercdaf12da4402
diff --git a/zproject/jinja2/__init__.py b/zproject/jinja2/__init__.py
index e4ff5b02bdc..041a31c8df8 100644
--- a/zproject/jinja2/__init__.py
+++ b/zproject/jinja2/__init__.py
@@ -10,6 +10,7 @@ from jinja2 import Environment
from two_factor.plugins.phonenumber.templatetags.phonenumber import device_action
from zerver.context_processors import DEFAULT_PAGE_PARAMS
+from zerver.lib.send_email import FromAddress
from zerver.lib.templates import display_list, render_markdown_path, webpack_entry
@@ -28,6 +29,7 @@ def environment(**options: Any) -> Environment:
url=reverse,
render_markdown_path=render_markdown_path,
webpack_entry=webpack_entry,
+ support_email=FromAddress.SUPPORT,
)
env.install_gettext_translations(translation, True) # type: ignore[attr-defined] # Added by jinja2.ext.i18n