{% extends "projects/domain_list.html" %} {% load trans blocktrans from i18n %} {% load crispy from crispy_forms_tags %} {% block project_edit_content_subheader %} {% if domain %} {% trans "Update domain" %} {% else %} {% trans "Add domain" %} {% endif %} {% endblock project_edit_content_subheader %} {% block project_edit_content %} {% if domain %} {% url 'projects_domains_edit' project.slug domain.pk as action_url %} {% trans "Save domain" as button_text %} {% else %} {% url 'projects_domains_create' project.slug as action_url %} {% trans "Add domain" as button_text %} {% endif %} {% if domain.domainssl %}

{% trans "To configure this domain add a CNAME record in your DNS pointing your custom domain to this target." %}

{% trans "CNAME target" %}
{% if not domain.skip_validation and not domain.is_valid and domain.validation_process_expired %}
{% blocktrans trimmed %} The validation process period has ended. Save the domain to restart the process. {% endblocktrans %}
{% endif %} {% endif %}
{% csrf_token %} {{ form|crispy }} {% block domain_ssl %} {% if domain.domainssl %}
{# This references optional code to get the SSL certificate status #}
{{ domain.domainssl.status }}
{% trans "Did you setup a CNAME record in DNS pointing at \"readthedocs.io\"?" %}
{% if domain.domainssl.status == 'pending_validation' or True %}{% endif %}
{% endif %} {% endblock domain_ssl %} {% if domain.domainssl %}
{% trans "Saving the domain will cause revalidation of the SSL certificate." %}
{% endif %}
{% endblock project_edit_content %}