mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Adds HTML title elements to templates that extend either `base.html`, `portico.html` or `portico_signup.html`, and that are not website portico landing pages that will use the `PAGE_TITLE` variable to set the HTML title element (see following commit in series). Also, updates some templates for missing translation tags. As a general rule, we want the title element (and page content) translated. Exceptions that are updated in this commit are templates used in the development environment, analytics templates that are used by staff and templates related to Zephyr.
118 lines
5.7 KiB
HTML
118 lines
5.7 KiB
HTML
{% extends "zerver/portico.html" %}
|
|
|
|
{% block title %}
|
|
<title>{{ _("Configuration error") }} | Zulip</title>
|
|
{% endblock %}
|
|
|
|
{% block portico_content %}
|
|
|
|
<div class="error_page" style="padding-bottom: 60px;">
|
|
<div class="container">
|
|
<div class="row-fluid">
|
|
<img src="/static/images/errors/500art.svg" alt=""/>
|
|
<div class="errorbox config-error">
|
|
<div class="errorcontent">
|
|
<h1 class="lead">{{ _("Configuration error") }}</h1>
|
|
<br />
|
|
{% if error_name == "ldap_error_realm_is_none" %}
|
|
{% trans %}
|
|
You are trying to log in using LDAP without creating an
|
|
organization first. Please use EmailAuthBackend to create
|
|
your organization and then try again.
|
|
{% endtrans %}
|
|
{% endif %}
|
|
|
|
{% if error_name == "smtp_error" %}
|
|
<p>
|
|
It appears there are problems with the
|
|
email configuration.
|
|
</p>
|
|
{% if not development_environment %}
|
|
<p>
|
|
See <code>/var/log/zulip/errors.log</code> for more
|
|
details on the error.
|
|
</p>
|
|
<p>
|
|
You may also want to test your email configuration,
|
|
as described in the
|
|
<a href="https://zulip.readthedocs.io/en/latest/production/email.html">Production installation docs</a>.
|
|
</p>
|
|
{% else %}
|
|
<p>
|
|
Please have a look at our
|
|
<a target="_blank" rel="noopener noreferrer" href="https://zulip.readthedocs.io/en/latest/subsystems/email.html#development-and-testing"> setup guide</a>
|
|
for forwarding emails sent in development
|
|
environment to an email account.
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if error_name == "dev_not_supported_error" %}
|
|
{{ render_markdown_path('zerver/dev-not-supported-error.md', {"settings_path": settings_path}) }}
|
|
{% endif %}
|
|
|
|
{% if has_markdown_file %}
|
|
{% if development_environment %}
|
|
{{ render_markdown_path('zerver/'+social_backend_name+'-error.md',
|
|
{"root_domain_uri": root_domain_uri, "settings_path": secrets_path, "secrets_path": secrets_path,
|
|
"client_id_key_name": "social_auth_" + social_backend_name + "_key"}) }}
|
|
<p>
|
|
For more information, have a look at
|
|
the <a href="https://zulip.readthedocs.io/en/latest/development/authentication.html#{{ social_backend_name }}">authentication
|
|
setup guide</a> for the development environment.
|
|
</p>
|
|
{% else %}
|
|
{{ render_markdown_path('zerver/'+social_backend_name+'-error.md',
|
|
{"root_domain_uri": root_domain_uri, "settings_path": settings_path, "secrets_path": secrets_path,
|
|
"client_id_key_name": "SOCIAL_AUTH_" + social_backend_name.upper() + "_KEY"}) }}
|
|
<p>
|
|
For more information, have a look at
|
|
our <a href="https://zulip.readthedocs.io/en/latest/production/authentication-methods.html">authentication
|
|
setup guide</a> and the comments in <code>{{ settings_comments_path }}</code>.
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if social_backend_name == "saml" %}
|
|
<p>
|
|
SAML authentication is either not enabled or misconfigured. Have a look at
|
|
our <a href="https://zulip.readthedocs.io/en/latest/production/authentication-methods.html#SAML">setup guide</a>.
|
|
</p>
|
|
{% if development_environment %}
|
|
<p>
|
|
See also the
|
|
<a href="https://zulip.readthedocs.io/en/latest/development/authentication.html#saml">SAML guide</a>
|
|
for the development environment.
|
|
</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if error_name == "remoteuser_error_backend_disabled" %}
|
|
<p>
|
|
Authentication via the REMOTE_USER header is
|
|
disabled in `/etc/zulip/settings.py`.
|
|
</p>
|
|
{% endif %}
|
|
{% if error_name == "remoteuser_error_remote_user_header_missing" %}
|
|
<p>
|
|
The REMOTE_USER header is not set.
|
|
</p>
|
|
{% endif %}
|
|
{% if error_name == "oidc_error" %}
|
|
<p>
|
|
The OpenID Connect backend is not configured correctly.
|
|
</p>
|
|
{% endif %}
|
|
|
|
<p>After making your changes, remember to restart
|
|
the Zulip server.</p>
|
|
<p><a href=""> Refresh</a> to try again or <a href="/login/">click here</a> to go back to the login page.</p>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|