support: Revise view for scrubbed realms.

When a realm is scrubbed, there should be no support actions to
take and all user information has been removed.
This commit is contained in:
Lauryn Menard
2025-06-17 20:57:05 +02:00
committed by Tim Abbott
parent 79ea4b6eb0
commit bbd0f6e11c
3 changed files with 12 additions and 4 deletions

View File

@@ -10,7 +10,10 @@
{% if realm_support_data[realm.id].sponsorship_data.has_discount %}
<p class="support-section-header">Has a discount 💸</p>
{% endif %}
{% if realm.deactivated_redirect %}
{% set realm_is_scrubbed = realm_support_data[realm.id].is_scrubbed %}
{% if realm_is_scrubbed %}
<b>Realm has been scrubbed</b>
{% elif realm.deactivated_redirect %}
<b>Placeholder realm</b><br />
<b>Redirects to</b>: {{ realm.deactivated_redirect }}
<a title="Copy URL" class="copy-button" data-clipboard-text="{{ realm.deactivated_redirect }}">
@@ -69,7 +72,8 @@
<b>File upload usage</b>: {{ realm_support_data[realm.id].file_upload_usage }}<br />
{% endif %}
</div>
{% if not realm.deactivated_redirect %}
{% if realm_is_scrubbed %}
{% elif not realm.deactivated_redirect %}
<div>
<div class="realm-management-actions">
<p class="support-section-header">🛠️ Realm management:</p>