mirror of https://github.com/zulip/zulip.git
jinja2: Make sure that 500 pages have support_email set.
This commit is contained in:
parent
40f0663d9d
commit
cdaf12da44
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue