{% extends "zerver/emails/compiled/email_base_default.html" %}

{% block illustration %}
<img src="{{ email_images_base_uri }}/email_logo.png" alt=""/>
{% endblock %}

{% block content %}
    <p>
        {% trans email=macros.email_tag(email), realm_uri=macros.link_tag(realm_uri) %}Somebody (possibly you) requested a new password for the Zulip account {{ email }} on {{ realm_uri }}.{% endtrans %}
    </p>
    {% if active_account_in_realm %}
    <p>
        {{ _('Click the button below to reset your password.') }}
        <a class="button" href="{{ reset_url }}">{{ _("Reset password") }}</a>
    </p>
    {% else %}
    <p>
        {% if user_deactivated %}
            {% trans organization_url=macros.link_tag(realm_uri), help_link=realm_uri + "/help/deactivate-or-reactivate-a-user" %}You previously had an account on {{ organization_url }}, but it has been deactivated. You can contact an organization administrator to <a href="{{ help_link }}">reactivate your account</a>.{% endtrans %}
        {% else %}
            {% trans %}You do not have an account in that Zulip organization.{% endtrans %}
        {% endif %}
    </p>
    <p>
        {% if active_accounts_in_other_realms %}
            {{ _("You do have active accounts in the following organization(s).") }}
            <ul>
                {% for active_account in active_accounts_in_other_realms %}
                <li>{{ active_account.realm.uri }}</li>
                {% endfor %}
            </ul>
            {% trans %}You can try logging in or resetting your password in the organization(s) above.{% endtrans %}
        {% endif %}
    </p>
    {% endif %}

    <p>
        {% trans %}If you do not recognize this activity, you can safely ignore this email.{% endtrans %}
    </p>
{% endblock %}
