zulip/templates/500.html
Prakhar Pratyush 2f5912472c templates: Improve text on 500 error pages.
Makes the 500 error page text conditional on whether the server is
self-hosted or Zulip Cloud.

In the case of Zulip Cloud, when `settings.CORPORATE_ENABLED` is true,
the text provides an email address to contact Zulip support.

In the case of self-hosted, when `settings.CORPORATE_ENABLED is false,
the text provides an email address to contact server administrators
and a link to Zulip's server troubleshooting guide.

Fixes #23063.
2022-10-07 15:20:19 -07:00

57 lines
2.2 KiB
HTML

{% extends "zerver/portico.html" %}
{% block title %}
<title>{{ _("Internal server error") }} | Zulip</title>
{% endblock %}
{% block customhead %}
{{ super() }}
<meta http-equiv="refresh" content="60;URL='/'" />
{% endblock %}
{% block portico_class_name %}error{% endblock %}
{% block portico_content %}
<div class="error_page">
<div class="container">
<div class="row-fluid">
<img src="/static/images/errors/500art.svg" alt=""/>
<div class="errorbox">
<div class="errorcontent">
<h1 class="lead">{{ _("Internal server error") }}</h1>
<p>
{% trans %}
Your Zulip chat cannot be loaded because the server is experiencing technical difficulties.
{% endtrans %}
</p>
<p>
{% trans %}
This page will reload automatically when service is restored.
{% endtrans %}
{% if corporate_enabled %}
{% trans %}
In the meantime, you can <a href="mailto:{{support_email}}">contact Zulip support</a>.
{% endtrans %}
{% else %}
{% trans %}
In the meantime, you can <a href="mailto:{{support_email}}">contact
this server's administrators</a> for support.
{% endtrans %}
{% endif %}
</p>
{% if not corporate_enabled %}
<p>
{% trans troubleshooting_url="https://zulip.readthedocs.io/en/latest/production/troubleshooting.html" %}
If you administer this server, you may want to check out the
<a href="{{troubleshooting_url}}">Zulip server troubleshooting guide</a>.
{% endtrans %}
</p>
{% endif %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}