mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
One disadvantage of relying on Jinja2 to load all templates is that it only searches a finite set of pre-configured template directories. Unfortunately, that breaks when someone tries to enable a custom privacy or terms page and has the corresponding template in a directory outside of Jinja2's recognized directories (for instance, it won't find `/etc/zulip/terms.md`, the recommended path). This commit makes it so that render_markdown_path can be more sensible about pure Markdown files and load templates with absolute paths directly without relying on Jinja2, if need be.
37 lines
1.1 KiB
HTML
37 lines
1.1 KiB
HTML
{% extends "zerver/portico.html" %}
|
|
|
|
{# Terms of Service. #}
|
|
|
|
{% block customhead %}
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
{{ render_bundle('landing-page') }}
|
|
|
|
{% endblock %}
|
|
|
|
{% block portico_content %}
|
|
|
|
{% include 'zerver/landing_nav.html' %}
|
|
|
|
<div class="portico-landing why-page">
|
|
<div class="hero small-hero">
|
|
<h1 class="center">{% trans %}Terms of Service{% endtrans %}</h1>
|
|
</div>
|
|
<div class="main">
|
|
<div class="padded-content">
|
|
<div class="inner-content">
|
|
{% if terms_of_service %}
|
|
{{ render_markdown_path(terms_of_service, pure_markdown=True) }}
|
|
{% else %}
|
|
{% trans %}
|
|
This installation of Zulip does not have a configured terms of service.
|
|
Contact this <a href="mailto:{{ support_email }}">server's administrator</a>
|
|
if you have any questions.
|
|
{% endtrans %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|