jinja2: Make sure that 500 pages have support_email set.

This commit is contained in:
Alex Vandiver 2023-04-12 02:37:51 +00:00 committed by Tim Abbott
parent 40f0663d9d
commit cdaf12da44
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from jinja2 import Environment
from two_factor.plugins.phonenumber.templatetags.phonenumber import device_action from two_factor.plugins.phonenumber.templatetags.phonenumber import device_action
from zerver.context_processors import DEFAULT_PAGE_PARAMS 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 from zerver.lib.templates import display_list, render_markdown_path, webpack_entry
@ -28,6 +29,7 @@ def environment(**options: Any) -> Environment:
url=reverse, url=reverse,
render_markdown_path=render_markdown_path, render_markdown_path=render_markdown_path,
webpack_entry=webpack_entry, webpack_entry=webpack_entry,
support_email=FromAddress.SUPPORT,
) )
env.install_gettext_translations(translation, True) # type: ignore[attr-defined] # Added by jinja2.ext.i18n env.install_gettext_translations(translation, True) # type: ignore[attr-defined] # Added by jinja2.ext.i18n