/terms/: Convert "terms" page to be styled like why/for pages.

This styles it to be like the why/for landing pages and have the new
small hero.
This commit is contained in:
Brock Whittaker 2017-10-06 16:34:00 -07:00 committed by Tim Abbott
parent 887b4d9fa8
commit 4d33e66496
1 changed files with 30 additions and 11 deletions

View File

@ -2,19 +2,38 @@
{# Terms of Service. #}
{% block customhead %}
{{ super() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% stylesheet 'portico' %}
{% stylesheet 'landing-page' %}
{{ render_bundle('landing-page') }}
{% endblock %}
{% block portico_content %}
<div class="app terms-page flex">
<div class="app-main terms-page-container white-box">
{% if terms_of_service %}
{{ render_markdown_path(terms_of_service) }}
{% 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 %}
{% 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) }}
{% 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>