mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
web: Sync content of Django and nginx error pages.
Also edit the text to more clearly explain the situation.
This commit is contained in:
committed by
Tim Abbott
parent
f15d12f257
commit
c7da412b3b
@@ -14,27 +14,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>
|
||||||
<p>
|
{% if corporate_enabled %}
|
||||||
{% trans %}
|
<!-- Keep in sync with web/html/5xx-cloud.html -->
|
||||||
Your Zulip chat cannot be loaded because the server is experiencing technical difficulties.
|
<p>
|
||||||
{% endtrans %}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{% trans %}
|
|
||||||
This page will reload automatically when service is restored.
|
|
||||||
{% endtrans %}
|
|
||||||
{% if corporate_enabled %}
|
|
||||||
{% trans %}
|
{% trans %}
|
||||||
In the meantime, you can <a href="mailto:{{support_email}}">contact Zulip support</a>.
|
Something went wrong. Sorry about that! We're aware of
|
||||||
|
the problem and are working to fix it.
|
||||||
|
Zulip will load automatically once it is working again.
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% else %}
|
</p>
|
||||||
|
<p>
|
||||||
|
{% trans status_url="https://status.zulip.com/" %}
|
||||||
|
Please check <a href="{{status_url}}">Zulip Cloud status</a> for
|
||||||
|
more information, and <a href="mailto:{{support_email}}">contact
|
||||||
|
Zulip support</a> with any questions.
|
||||||
|
{% endtrans %}
|
||||||
|
</p>
|
||||||
|
{% else %}
|
||||||
|
<!-- Keep in sync with web/html/5xx.html -->
|
||||||
|
<p>
|
||||||
{% trans %}
|
{% trans %}
|
||||||
In the meantime, you can <a href="mailto:{{support_email}}">contact
|
Something went wrong. Sorry about that!
|
||||||
this server's administrators</a> for support.
|
Zulip will load automatically once it is working again.
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
{% endif %}
|
</p>
|
||||||
</p>
|
<p>
|
||||||
{% if not corporate_enabled %}
|
{% trans %}
|
||||||
|
<a href="mailto:{{support_email}}">Contact this server's administrators</a> for support.
|
||||||
|
{% endtrans %}
|
||||||
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{% trans troubleshooting_url="https://zulip.readthedocs.io/en/latest/production/troubleshooting.html" %}
|
{% trans troubleshooting_url="https://zulip.readthedocs.io/en/latest/production/troubleshooting.html" %}
|
||||||
If you administer this server, you may want to check out the
|
If you administer this server, you may want to check out the
|
||||||
|
@@ -22,10 +22,19 @@
|
|||||||
<img src="/static/images/errors/500art.svg" alt=""/>
|
<img src="/static/images/errors/500art.svg" alt=""/>
|
||||||
<div class="errorbox">
|
<div class="errorbox">
|
||||||
<div class="errorcontent">
|
<div class="errorcontent">
|
||||||
|
<!-- Keep in sync with templates/500.html -->
|
||||||
<h1 class="lead">Internal server error</h1>
|
<h1 class="lead">Internal server error</h1>
|
||||||
<p>Zulip Cloud is currently experiencing some technical difficulties. Sorry about that!</p>
|
<p>
|
||||||
<p>You can check our <a href="https://status.zulip.com/">status page</a> for more information.</p>
|
Something went wrong. Sorry about that! We're
|
||||||
<p>The page will reload automatically soon after service is restored.</p>
|
aware of the problem and are working to fix
|
||||||
|
it. Zulip will load automatically once it is
|
||||||
|
working again.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
Please check <a href="https://status.zulip.com/">Zulip Cloud status</a> for
|
||||||
|
more information, and <a href="mailto:support@zulip.com">contact
|
||||||
|
Zulip support</a> with any questions.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -22,9 +22,15 @@
|
|||||||
<img src="/static/images/errors/500art.svg" alt=""/>
|
<img src="/static/images/errors/500art.svg" alt=""/>
|
||||||
<div class="errorbox">
|
<div class="errorbox">
|
||||||
<div class="errorcontent">
|
<div class="errorcontent">
|
||||||
|
<!-- Keep in sync with templates/500.html -->
|
||||||
<h1 class="lead">Internal server error</h1>
|
<h1 class="lead">Internal server error</h1>
|
||||||
<p>This Zulip server is currently experiencing some technical difficulties. Sorry about that!</p>
|
<p>
|
||||||
<p>The page will reload automatically soon after service is restored.</p>
|
Something went wrong. Sorry about that!
|
||||||
|
Zulip will load automatically once it is working again.
|
||||||
|
</p>
|
||||||
|
<p>If you administer this server, you may want to check out the
|
||||||
|
<a href="https://zulip.readthedocs.io/en/stable/production/troubleshooting.html">Zulip server troubleshooting guide</a>.
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -2305,7 +2305,7 @@ class UserSignUpTest(ZulipTestCase):
|
|||||||
self.assertNotIn(
|
self.assertNotIn(
|
||||||
"https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode()
|
"https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode()
|
||||||
)
|
)
|
||||||
self.assert_in_response("server is experiencing technical difficulties", result)
|
self.assert_in_response("Something went wrong. Sorry about that!", result)
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
"ERROR:root:Failed to deliver email during user registration" in m.output[0]
|
"ERROR:root:Failed to deliver email during user registration" in m.output[0]
|
||||||
)
|
)
|
||||||
@@ -2354,7 +2354,7 @@ class UserSignUpTest(ZulipTestCase):
|
|||||||
self.assertNotIn(
|
self.assertNotIn(
|
||||||
"https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode()
|
"https://zulip.readthedocs.io/en/latest/subsystems/email.html", result.content.decode()
|
||||||
)
|
)
|
||||||
self.assert_in_response("server is experiencing technical difficulties", result)
|
self.assert_in_response("Something went wrong. Sorry about that!", result)
|
||||||
self.assertTrue("ERROR:root:Failed to deliver email during realm creation" in m.output[0])
|
self.assertTrue("ERROR:root:Failed to deliver email during realm creation" in m.output[0])
|
||||||
|
|
||||||
def test_user_default_language_and_timezone(self) -> None:
|
def test_user_default_language_and_timezone(self) -> None:
|
||||||
|
Reference in New Issue
Block a user