Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
templates: Use a common template for error pages.
Aman Agrawaldd7011016655
diff --git a/templates/404.html b/templates/404.htmlindex c033f7636e7..b86d8f17531 100644--- a/templates/404.html+++ b/templates/404.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Error") }} | Zulip</title>@@ -6,23 +6,17 @@{% 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/400art.svg') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Page not found (404)") }}</h1>- <p>- {% trans %}- If this error is unexpected, you can- <a href="mailto:{{ support_email }}">contact support</a>.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Page not found (404)") }}</h1>+ <p>+ {% trans %}+ If this error is unexpected, you can+ <a href="mailto:{{ support_email }}">contact support</a>.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/4xx.html b/templates/4xx.htmlindex 24f9a369847..2b921665da6 100644--- a/templates/4xx.html+++ b/templates/4xx.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Error") }} | Zulip</title>@@ -6,48 +6,42 @@{% block portico_class_name %}error{% endblock %}-{% block portico_content %}-<div class="error_page">- <div class="container">- <div class="row-fluid">- <div class="errorbox">- <div class="errorcontent">- {% if csrf_failure %}- <h1 class="lead">{{ _("Access forbidden (403)") }}</h1>- <p>- {% trans %}- Your request could not be completed because your- browser did not send the credentials required to authenticate- your access. To resolve this issue:- {% endtrans %}- </p>+{% block error_page_content %}+<div class="errorbox">+ <div class="errorcontent">+ {% if csrf_failure %}+ <h1 class="lead">{{ _("Access forbidden (403)") }}</h1>+ <p>+ {% trans %}+ Your request could not be completed because your+ browser did not send the credentials required to authenticate+ your access. To resolve this issue:+ {% endtrans %}+ </p>- <ol>- <li>- {% trans %}- Make sure that your browser allows cookies for this site.- {% endtrans %}- </li>- <li>- {% trans %}- Check for any browser privacy settings or extensions- that block Referer headers, and disable them for- this site.- {% endtrans %}- </li>- </ol>- {% elif status_code == 405 %}- <h1 class="lead">{{ _("Method not allowed (405)") }}</h1>- <p>- {% trans %}- If this error is unexpected, you can- <a href="mailto:{{ support_email }}">contact support</a>.- {% endtrans %}- </p>- {% endif %}- </div>- </div>- </div>+ <ol>+ <li>+ {% trans %}+ Make sure that your browser allows cookies for this site.+ {% endtrans %}+ </li>+ <li>+ {% trans %}+ Check for any browser privacy settings or extensions+ that block Referer headers, and disable them for+ this site.+ {% endtrans %}+ </li>+ </ol>+ {% elif status_code == 405 %}+ <h1 class="lead">{{ _("Method not allowed (405)") }}</h1>+ <p>+ {% trans %}+ If this error is unexpected, you can+ <a href="mailto:{{ support_email }}">contact support</a>.+ {% endtrans %}+ </p>+ {% endif %}</div></div>{% endblock %}diff --git a/templates/500.html b/templates/500.htmlindex 27118ef74b7..1e101f9c741 100644--- a/templates/500.html+++ b/templates/500.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Internal server error") }} | Zulip</title>@@ -11,46 +11,39 @@{% 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>+{% block error_page_content %}+<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>-{% endblock %}diff --git a/templates/confirmation/link_does_not_exist.html b/templates/confirmation/link_does_not_exist.htmlindex a33f0f1a654..deaa1fd3f75 100644--- a/templates/confirmation/link_does_not_exist.html+++ b/templates/confirmation/link_does_not_exist.html@@ -1,25 +1,19 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Confirmation link does not exist") }} | Zulip</title>{% endblock %}-{% block portico_content %}-<div class="error_page">- <div class="container">- <div class="row-fluid">- <img src="{{ static('images/errors/400art.svg') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Whoops. We couldn't find your confirmation link in the system.") }}</h1>- <p>- {% trans %}- Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Whoops. We couldn't find your confirmation link in the system.") }}</h1>+ <p>+ {% trans %}+ Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/confirmation/link_expired.html b/templates/confirmation/link_expired.htmlindex e98a9170924..19438a91d05 100644--- a/templates/confirmation/link_expired.html+++ b/templates/confirmation/link_expired.html@@ -1,21 +1,15 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Confirmation link expired or deactivated") }} | Zulip</title>{% endblock %}-{% block portico_content %}-<div class="error_page">- <div class="container">- <div class="row-fluid">- <img class="hourglass-img" src="{{ static('images/errors/timeout_hourglass.png') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Whoops. The confirmation link has expired or been deactivated.") }}</h1>- <p>{{ _("Please contact your organization administrator for a new link.") }}</p>- </div>- </div>- </div>+{% block error_page_content %}+<img class="hourglass-img" src="{{ static('images/errors/timeout_hourglass.png') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Whoops. The confirmation link has expired or been deactivated.") }}</h1>+ <p>{{ _("Please contact your organization administrator for a new link.") }}</p></div></div>{% endblock %}diff --git a/templates/confirmation/link_malformed.html b/templates/confirmation/link_malformed.htmlindex c14b770b155..66f66d37cfe 100644--- a/templates/confirmation/link_malformed.html+++ b/templates/confirmation/link_malformed.html@@ -1,26 +1,20 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Confirmation link malformed") }} | Zulip</title>{% 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">{{ _("Whoops. The confirmation link is malformed.") }}</h1>- <p>{{ _("Make sure you copied the link correctly in to your browser. If you're still encountering this page, it's probably our fault. We're sorry.") }}</p>- <p>- {% trans %}- Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/500art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Whoops. The confirmation link is malformed.") }}</h1>+ <p>{{ _("Make sure you copied the link correctly in to your browser. If you're still encountering this page, it's probably our fault. We're sorry.") }}</p>+ <p>+ {% trans %}+ Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/corporate/billing/remote_realm_login_error_for_server_on_active_plan.html b/templates/corporate/billing/remote_realm_login_error_for_server_on_active_plan.htmlindex 0b6f5990e83..fca4c97c3aa 100644--- a/templates/corporate/billing/remote_realm_login_error_for_server_on_active_plan.html+++ b/templates/corporate/billing/remote_realm_login_error_for_server_on_active_plan.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Plan management not available") }} | Zulip</title>@@ -6,33 +6,27 @@{% 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/400art.svg') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Plan management not available") }}</h1>- <p>- {% trans %} Plan management is not available for this- organization, because your Zulip server is already on a- {{ server_plan_name }} plan, which covers all- organizations on this server. See the <b>All versions</b> tab of the- <a href="https://zulip.com/help/self-hosted-billing#manage-billing">log- in instructions</a> to administer the plan for your- Zulip server.- {% endtrans %}- </p>- <p>- {% trans %} To move the plan from the server to this- organization, or for other questions, <a href="mailto:{{- support_email }}">contact support</a>.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Plan management not available") }}</h1>+ <p>+ {% trans %} Plan management is not available for this+ organization, because your Zulip server is already on a+ {{ server_plan_name }} plan, which covers all+ organizations on this server. See the <b>All versions</b> tab of the+ <a href="https://zulip.com/help/self-hosted-billing#manage-billing">log+ in instructions</a> to administer the plan for your+ Zulip server.+ {% endtrans %}+ </p>+ <p>+ {% trans %} To move the plan from the server to this+ organization, or for other questions, <a href="mailto:{{+ support_email }}">contact support</a>.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/corporate/billing/remote_server_login_error_for_any_realm_on_active_plan.html b/templates/corporate/billing/remote_server_login_error_for_any_realm_on_active_plan.htmlindex 989894d6353..e51d73309c5 100644--- a/templates/corporate/billing/remote_server_login_error_for_any_realm_on_active_plan.html+++ b/templates/corporate/billing/remote_server_login_error_for_any_realm_on_active_plan.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Plan management not available") }} | Zulip</title>@@ -6,29 +6,23 @@{% 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/400art.svg') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Plan management not available") }}</h1>- <p>- {% trans %}- Plan management for this server is not available because at least one organization- hosted on this server already has an active plan.- {% endtrans %}- </p>- <p>- {% trans %}- <a href="https://zulip.com/help/self-hosted-billing#manage-billing">Log in</a> to plan management for your- organization instead, or <a href='mailto:{{ support_email }}'>contact support</a> with any questions.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Plan management not available") }}</h1>+ <p>+ {% trans %}+ Plan management for this server is not available because at least one organization+ hosted on this server already has an active plan.+ {% endtrans %}+ </p>+ <p>+ {% trans %}+ <a href="https://zulip.com/help/self-hosted-billing#manage-billing">Log in</a> to plan management for your+ organization instead, or <a href='mailto:{{ support_email }}'>contact support</a> with any questions.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/corporate/billing/remote_server_rate_limit_exceeded.html b/templates/corporate/billing/remote_server_rate_limit_exceeded.htmlindex 7967181b405..0f8ce4bf9fa 100644--- a/templates/corporate/billing/remote_server_rate_limit_exceeded.html+++ b/templates/corporate/billing/remote_server_rate_limit_exceeded.html@@ -1,27 +1,19 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Rate limit exceeded") }} | Zulip</title>{% 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">{{ _("Rate limit exceeded.") }}</h1>- <p>- {% trans %}Your server has exceeded the limit for how- often this action can be performed.{% endtrans %}- {% trans %}You can try again in {{retry_after}} seconds.{% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/500art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Rate limit exceeded.") }}</h1>+ <p>+ {% trans %}Your server has exceeded the limit for how+ often this action can be performed.{% endtrans %}+ {% trans %}You can try again in {{retry_after}} seconds.{% endtrans %}+ </p></div></div>-{% endblock %}diff --git a/templates/zerver/auth_subdomain.html b/templates/zerver/auth_subdomain.htmlindex ae155eb3693..0c6cca40b14 100644--- a/templates/zerver/auth_subdomain.html+++ b/templates/zerver/auth_subdomain.html@@ -1,31 +1,23 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Authentication subdomain error") }} | Zulip</title>{% 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">{{ _("Authentication subdomain") }}</h1>- <p>- {% trans %}- It appears you ended up here by accident. This site- is meant to be an intermediate step in the authentication process- and shouldn't be accessed manually. If you came here directly,- you probably got the address wrong. If you got stuck here while trying- to log in, this is most likely a server bug or misconfiguration.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/500art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Authentication subdomain") }}</h1>+ <p>+ {% trans %}+ It appears you ended up here by accident. This site+ is meant to be an intermediate step in the authentication process+ and shouldn't be accessed manually. If you came here directly,+ you probably got the address wrong. If you got stuck here while trying+ to log in, this is most likely a server bug or misconfiguration.+ {% endtrans %}+ </p></div></div>-{% endblock %}diff --git a/templates/zerver/insecure_desktop_app.html b/templates/zerver/insecure_desktop_app.htmlindex 24e593a757a..8db65006955 100644--- a/templates/zerver/insecure_desktop_app.html+++ b/templates/zerver/insecure_desktop_app.html@@ -1,44 +1,35 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Update required") }} | Zulip</title>{% endblock %}-{% block content %}+{% block error_page_content%}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox config-error">+ <div class="errorcontent">+ <h1 class="lead">{{ _('Update required') }}</h1>+ <p>+ {% trans %}+ You are using old version of the Zulip desktop+ app that is no longer supported.+ {% endtrans %}+ </p>-<div class="error_page">- <div class="container">- <div class="row-fluid">- <img src="{{ static('images/errors/400art.svg') }}" alt=""/>- <div class="errorbox config-error">- <div class="errorcontent">- <h1 class="lead">{{ _('Update required') }}</h1>- <p>- {% trans %}- You are using old version of the Zulip desktop- app that is no longer supported.- {% endtrans %}- </p>+ {% if auto_update_broken %}+ <p>+ {% trans %}+ The auto-update feature in this old version of+ Zulip desktop app no longer works.+ {% endtrans %}+ </p>+ {% endif %}- {% if auto_update_broken %}- <p>- {% trans %}- The auto-update feature in this old version of- Zulip desktop app no longer works.- {% endtrans %}- </p>- {% endif %}-- <p>- <a href="https://zulip.com/apps/" target="_blank" rel="noopener noreferrer">- {{ _("Download the latest release.") }}- </a>- </p>- </div>-- </div>- </div>+ <p>+ <a href="https://zulip.com/apps/" target="_blank" rel="noopener noreferrer">+ {{ _("Download the latest release.") }}+ </a>+ </p></div></div>-{% endblock %}diff --git a/templates/zerver/portico_error_page.html b/templates/zerver/portico_error_page.htmlnew file mode 100644index 00000000000..9223fbc2e1a--- /dev/null+++ b/templates/zerver/portico_error_page.html@@ -0,0 +1,12 @@+{% extends "zerver/portico.html" %}++{% block portico_content %}+<div class="error_page">+ <div class="container">+ <div class="row-fluid">+ {% block error_page_content %}+ {% endblock %}+ </div>+ </div>+</div>+{% endblock %}diff --git a/templates/zerver/rate_limit_exceeded.html b/templates/zerver/rate_limit_exceeded.htmlindex 96ed1d8b43c..6b4771bc104 100644--- a/templates/zerver/rate_limit_exceeded.html+++ b/templates/zerver/rate_limit_exceeded.html@@ -1,27 +1,19 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Rate limit exceeded") }} | Zulip</title>{% 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">{{ _("Rate limit exceeded.") }}</h1>- <p>- {% trans %}You have exceeded the limit for how- often a user can perform this action.{% endtrans %}- {% trans %}You can try again in {{retry_after}} seconds.{% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/500art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Rate limit exceeded.") }}</h1>+ <p>+ {% trans %}You have exceeded the limit for how+ often a user can perform this action.{% endtrans %}+ {% trans %}You can try again in {{retry_after}} seconds.{% endtrans %}+ </p></div></div>-{% endblock %}diff --git a/templates/zerver/realm_creation_disabled.html b/templates/zerver/realm_creation_disabled.htmlindex 0954f883e0e..587d66fb9b2 100644--- a/templates/zerver/realm_creation_disabled.html+++ b/templates/zerver/realm_creation_disabled.html@@ -1,26 +1,20 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Organization creation link required") }} | Zulip</title>{% 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">{{ _("Organization creation link required") }}</h1>- <p>- {% trans %}- Creating a new organization on this server requires a valid organization creation link.- Please see <a href="https://zulip.readthedocs.io/en/stable/production/multiple-organizations.html">documentation</a> on creating a new organization for more information.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/500art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Organization creation link required") }}</h1>+ <p>+ {% trans %}+ Creating a new organization on this server requires a valid organization creation link.+ Please see <a href="https://zulip.readthedocs.io/en/stable/production/multiple-organizations.html">documentation</a> on creating a new organization for more information.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/zerver/realm_creation_link_invalid.html b/templates/zerver/realm_creation_link_invalid.htmlindex c43e95cea75..5b3f393f9c4 100644--- a/templates/zerver/realm_creation_link_invalid.html+++ b/templates/zerver/realm_creation_link_invalid.html@@ -1,25 +1,19 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Organization creation link expired or invalid") }} | Zulip</title>{% endblock %}-{% block portico_content %}-<div class="error_page">- <div class="container">- <div class="row-fluid">- <img class="hourglass-img" src="{{ static('images/errors/timeout_hourglass.png') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Organization creation link expired or invalid") }}</h1>- <p>- {% trans %}- Unfortunately, this is not a valid link for creating an organization. Please <a href="/new/">obtain a new link</a> and try again.- {% endtrans %}- </p>- </div>- </div>- </div>+{% block error_page_content %}+<img class="hourglass-img" src="{{ static('images/errors/timeout_hourglass.png') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Organization creation link expired or invalid") }}</h1>+ <p>+ {% trans %}+ Unfortunately, this is not a valid link for creating an organization. Please <a href="/new/">obtain a new link</a> and try again.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/zerver/remote_realm_server_mismatch_error.html b/templates/zerver/remote_realm_server_mismatch_error.htmlindex 390072406d6..065d8da60da 100644--- a/templates/zerver/remote_realm_server_mismatch_error.html+++ b/templates/zerver/remote_realm_server_mismatch_error.html@@ -1,4 +1,4 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Error") }} | Zulip</title>@@ -6,26 +6,20 @@{% 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/400art.svg') }}" alt=""/>- <div class="errorbox">- <div class="errorcontent">- <h1 class="lead">{{ _("Unexpected Zulip server registration") }}</h1>- <p>- {% trans %}- Your Zulip organization is registered as associated with a- different Zulip server installation.+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox">+ <div class="errorcontent">+ <h1 class="lead">{{ _("Unexpected Zulip server registration") }}</h1>+ <p>+ {% trans %}+ Your Zulip organization is registered as associated with a+ different Zulip server installation.- Please <a href="mailto:{{ support_email }}">contact Zulip support</a>- for assistance in resolving this issue.- {% endtrans %}- </p>- </div>- </div>- </div>+ Please <a href="mailto:{{ support_email }}">contact Zulip support</a>+ for assistance in resolving this issue.+ {% endtrans %}+ </p></div></div>{% endblock %}diff --git a/templates/zerver/unsupported_browser.html b/templates/zerver/unsupported_browser.htmlindex 02fb6f2c50e..f1ca3a099b6 100644--- a/templates/zerver/unsupported_browser.html+++ b/templates/zerver/unsupported_browser.html@@ -1,39 +1,30 @@-{% extends "zerver/portico.html" %}+{% extends "zerver/portico_error_page.html" %}{% block title %}<title>{{ _("Unsupported browser") }} | Zulip</title>{% endblock %}-{% block portico_content %}--<div class="error_page">- <div class="container">- <div class="row-fluid">- <img src="{{ static('images/errors/400art.svg') }}" alt=""/>- <div class="errorbox config-error">- <div class="errorcontent">- <h1 class="lead">{{ _('Unsupported browser') }}</h1>- <p>- {% trans %}- {{ browser_name }} is not supported by Zulip.- {% endtrans %}- </p>- <p>- {% trans supported_browsers_page_link="/help/supported-browsers" %}- Zulip supports <a href="{{ supported_browsers_page_link }}">modern browsers</a>- like Firefox, Chrome, and Edge.- {% endtrans %}- </p>- <p>- {% trans apps_page_link="https://zulip.com/apps/" %}- You can also use the <a href="{{ apps_page_link }}">Zulip desktop app</a>.- {% endtrans %}- </p>- </div>-- </div>- </div>+{% block error_page_content %}+<img src="{{ static('images/errors/400art.svg') }}" alt=""/>+<div class="errorbox config-error">+ <div class="errorcontent">+ <h1 class="lead">{{ _('Unsupported browser') }}</h1>+ <p>+ {% trans %}+ {{ browser_name }} is not supported by Zulip.+ {% endtrans %}+ </p>+ <p>+ {% trans supported_browsers_page_link="/help/supported-browsers" %}+ Zulip supports <a href="{{ supported_browsers_page_link }}">modern browsers</a>+ like Firefox, Chrome, and Edge.+ {% endtrans %}+ </p>+ <p>+ {% trans apps_page_link="https://zulip.com/apps/" %}+ You can also use the <a href="{{ apps_page_link }}">Zulip desktop app</a>.+ {% endtrans %}+ </p></div></div>-{% endblock %}