{% load djblets_utils i18n %}

{% trans "SSH Public Key:" %}

{% with form.hostkeyerror as hostkeyerror %} {% with form.certerror as certerror %} {% with form.certerror.certificate as certificate %} {% if hostkeyerror or certerror %}
{% if hostkeyerror %} {{hostkeyerror|paragraphs}} {% if hostkeyerror.key %}

RSA key fingerprint is {{hostkeyerror.key}}.

{% endif %} {% if hostkeyerror.expected_key %}

Expected fingerprint is {{hostkeyerror.expected_key}}.

{% endif %} {% elif certerror %} {{certerror|paragraphs}} {% if certificate.failures %}

{% trans "There were errors validating this certificate:" %}

{% endif %}

{% trans "Certificate information:" %}

{% if certificate.hostname %}

{{certificate.hostname}}

{% endif %} {% if certificate.valid_from %}

{% blocktrans with certificate.valid_from as valid_from and certificate.valid_until as valid_until %} from {{valid_from}} until {{valid_until}} {% endblocktrans %}

{% endif %} {% if certificate.issuer %}

{{certificate.issuer}}

{% endif %}

{{certificate.fingerprint}}

{% endif %}

{% blocktrans %} Do you trust this host, or do you want to go back and edit the repository information? {% endblocktrans %}

{% endif %} {% endwith %} {% endwith %} {% endwith %} {% with form.userkeyerror as userkeyerror %} {% if userkeyerror %}
{{userkeyerror|paragraphs}} {% url 'settings-ssh' as ssh_settings_url %}

{% blocktrans %} Review Board doesn't have a public key to send to the server. You can create one, add it to the server, and then try again. {% endblocktrans %}

{% endif %} {% endwith %}