diff --git a/templates/zerver/privacy.html b/templates/zerver/privacy.html index c920b27b7e..e7b3374ed3 100644 --- a/templates/zerver/privacy.html +++ b/templates/zerver/privacy.html @@ -8,7 +8,7 @@
{% if privacy_policy %}
- {{ privacy_policy|render_markdown_path }}
+ {{ render_markdown_path(privacy_policy) }}
{% else %}
{% trans %}
This installation of Zulip does not have a configured privacy policy.
diff --git a/templates/zerver/terms.html b/templates/zerver/terms.html
index 5b31dd781b..10ec82fed3 100644
--- a/templates/zerver/terms.html
+++ b/templates/zerver/terms.html
@@ -7,7 +7,7 @@
{% if terms_of_service %}
- {{ terms_of_service|render_markdown_path }}
+ {{ render_markdown_path(terms_of_service) }}
{% else %}
{% trans %}
This installation of Zulip does not have a configured terms of service.
diff --git a/templates/zerver/why-zulip.html b/templates/zerver/why-zulip.html
index cf7fa6d81c..624e4bcd46 100644
--- a/templates/zerver/why-zulip.html
+++ b/templates/zerver/why-zulip.html
@@ -25,7 +25,7 @@
diff --git a/zproject/jinja2/__init__.py b/zproject/jinja2/__init__.py
index 429f19cab6..462837a799 100644
--- a/zproject/jinja2/__init__.py
+++ b/zproject/jinja2/__init__.py
@@ -20,6 +20,7 @@ def environment(**options):
env.globals.update({
'static': staticfiles_storage.url,
'url': reverse,
+ 'render_markdown_path': render_markdown_path,
'minified_js': minified_js,
})
@@ -28,6 +29,5 @@ def environment(**options):
env.filters['slugify'] = slugify
env.filters['pluralize'] = pluralize
env.filters['display_list'] = display_list
- env.filters['render_markdown_path'] = render_markdown_path
return env
- {{ 'zerver/why-zulip.md'|render_markdown_path }}
+ {{ render_markdown_path('zerver/why-zulip.md') }}