diff --git a/templates/dashboard/directory.html b/templates/dashboard/directory.html index 21e78da2..3faa66df 100644 --- a/templates/dashboard/directory.html +++ b/templates/dashboard/directory.html @@ -199,7 +199,8 @@ let that = $(this); let message = `All aliases associated with ${directory} directory will also be deleted. ` + - `Your directory quota will be {{ current_user.directory_quota - 1 }} after the deletion, ` + + `As a deleted directory can't be used by someone else, deleting a directory doesn't reset your directory quota. ` + + `Your directory quota will be {{ current_user.directory_quota }} after the deletion, ` + " please confirm."; bootbox.confirm({ diff --git a/templates/dashboard/domain_detail/info.html b/templates/dashboard/domain_detail/info.html index c92bcdca..81c6fd3a 100644 --- a/templates/dashboard/domain_detail/info.html +++ b/templates/dashboard/domain_detail/info.html @@ -136,11 +136,23 @@ {% endif %} -
This operation is irreversible. - All aliases associated with this domain will be deleted. +
{% if custom_domain.is_sl_subdomain %} -
- After deletion, your subdomain quota will be {{ current_user.subdomain_quota - 1 }}. +
+ This operation is irreversible. + All aliases associated with this subdomain will be deleted. +
+
+ Because a deleted subdomain can't be recycled, i.e. reused by someone else, + deleting a subdomain won't restore the subdomain quota. + After deletion, your subdomain quota will still be {{ current_user.subdomain_quota }}. + We recommend to disable the catch-all option instead of deleting this subdomain. +
+ {% else %} +
+ This operation is irreversible. + All aliases associated with this domain will be deleted. +
{% endif %}
@@ -148,7 +160,10 @@
- Delete domain + + Delete {{ custom_domain.domain }} +
{% endblock %}