mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
context_processors: Add common context to be used in corporate pages.
Context is only available for functions inside corporate app.
This commit is contained in:
@@ -592,6 +592,11 @@ base_template_engine_settings: Dict[str, Any] = {
|
||||
},
|
||||
}
|
||||
|
||||
if CORPORATE_ENABLED:
|
||||
base_template_engine_settings["OPTIONS"]["context_processors"].append(
|
||||
"zerver.context_processors.zulip_default_corporate_context"
|
||||
)
|
||||
|
||||
default_template_engine_settings = deepcopy(base_template_engine_settings)
|
||||
default_template_engine_settings.update(
|
||||
NAME="Jinja2",
|
||||
|
||||
Reference in New Issue
Block a user