File tree 1 file changed +9
-5
lines changed
readthedocsext/theme/templates/projects/partials/edit
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 38
38
data-content ="{% trans "Edit " %}">
39
39
< i class ="fa-solid fa-wrench icon "> </ i >
40
40
</ a >
41
- < a class ="ui icon button "
42
- href ="{% url 'projects_domains_delete' project.slug object.pk %} "
43
- data-content ="{% trans "Delete " %}">
44
- < i class ="fa-duotone fa-trash icon "> </ i >
45
- </ a >
41
+
42
+ {% url "projects_domains_delete" project_slug=project.slug domain_pk=object.pk as delete_url %}
43
+ {% trans "Remove domain" as action_text %}
44
+ {% blocktrans trimmed asvar content_text with domain=object.domain %}
45
+ Remove domain {{ domain }}?
46
+ Make sure to also remove the DNS records for this domain.
47
+ Otherwise, another user may add the same domain to their project and serve that content from your domain (domain hijacking).
48
+ {% endblocktrans %}
49
+ {% include "includes/crud/remove_button.html" with id=object.pk form_url=delete_url action_text=action_text content_text=content_text %}
46
50
{% endblock list_item_right_buttons %}
47
51
48
52
{% block list_item_image %}
You can’t perform that action at this time.
0 commit comments