{% extends "includes/crud/table_list.html" %} {% load blocktrans trans from i18n %} {% block top_left_menu_items %} {% endblock top_left_menu_items %} {% block create_button %} {% url "projects_domains_create" project.slug as create_url %} {% trans "Add domain" as create_text %} {% include "includes/crud/create_button.html" with url=create_url text=create_text %} {% endblock create_button %} {% block list_placeholder_icon_class %} fa-duotone fa-at {% endblock list_placeholder_icon_class %} {% block list_placeholder_header %} {% blocktrans trimmed %} No domains are currently configured. {% endblocktrans %}
{% blocktrans trimmed with docs_url='https://docs.readthedocs.io/page/custom_domains.html' %} Configuring a custom domain allows you to serve your documentation from a domain other than "{{ default_domain }}". {% endblocktrans %}
{% endblock list_placeholder_header %} {% block list_placeholder_text %} {% trans "Learn more" %} {% endblock list_placeholder_text %} {% block list_item_right_buttons %} {% url "projects_domains_delete" project_slug=project.slug domain_pk=object.pk as delete_url %} {% trans "Remove domain" as action_text %} {% blocktrans trimmed asvar content_text with domain=object.domain %} Remove domain {{ domain }}? {% endblocktrans %} {% blocktrans trimmed asvar warning_text %} Make sure to also remove the DNS record for this domain, or another project might be able to reuse this domain (also known as domain hijacking). {% endblocktrans %} {% include "includes/crud/remove_button.html" with id=object.pk form_url=delete_url action_text=action_text content_text=content_text warning_text=warning_text %} {% endblock list_item_right_buttons %} {% block list_item_image %} {% endblock list_item_image %} {% block list_item_header %} {{ object.domain }} {% endblock list_item_header %} {% block list_item_meta_items %}
{% if object.https %}
{% trans "HTTPS enabled" %}
{% endif %} {% if object.domainssl %}
{% trans "CDN enabled" %}
{% endif %} {% if object.canonical %}
{% trans "Canonical" %}
{% endif %}
{% endblock list_item_meta_items %}