mirror of https://github.com/zulip/zulip.git
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.
This commit is contained in:
parent
79084d0b47
commit
2f5912472c
|
@ -19,13 +19,35 @@
|
||||||
<div class="errorbox">
|
<div class="errorbox">
|
||||||
<div class="errorcontent">
|
<div class="errorcontent">
|
||||||
<h1 class="lead">{{ _("Internal server error") }}</h1>
|
<h1 class="lead">{{ _("Internal server error") }}</h1>
|
||||||
{% trans %}
|
<p>
|
||||||
<p>This Zulip server is currently experiencing some technical difficulties. Sorry about that!</p>
|
{% trans %}
|
||||||
<p>The page will reload automatically soon after service is restored.</p>
|
Your Zulip chat cannot be loaded because the server is experiencing technical difficulties.
|
||||||
<p>If you'd like, you can <a href="mailto:{{ support_email }}">drop us a line</a> to let us know what happened.</p>
|
{% endtrans %}
|
||||||
{% 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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue