Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Distinguish demo organizations in support view.
Lauryn Menardef2725302358
diff --git a/templates/corporate/support/realm_details.html b/templates/corporate/support/realm_details.htmlindex 0627207b164..8bc4a36cea6 100644--- a/templates/corporate/support/realm_details.html+++ b/templates/corporate/support/realm_details.html@@ -1,8 +1,12 @@+{% set demo_organization_deletion = realm.demo_organization_scheduled_deletion_date %}<div class="realm-support-information"><span class="cloud-label">Cloud realm</span>{% if realm.deactivated %}<span class="deactivated-label">DEACTIVATED</span>{% endif %}+ {% if demo_organization_deletion %}+ <span class="demo-label">DEMO ORGANIZATION</span>+ {% endif %}<h3><img src="{{ realm_icon_url(realm) }}" class="support-realm-icon" /> {{ realm.name }}</h3>{% if realm.plan_type == SPONSORED_PLAN_TYPE %}<p class="support-section-header">On 100% sponsored Zulip Standard Free 🎉</p>@@ -10,6 +14,9 @@{% if realm_support_data[realm.id].sponsorship_data.has_discount %}<p class="support-section-header">Has a discount 💸</p>{% endif %}+ {% if demo_organization_deletion %}+ <p class="support-section-header">Scheduled deletion on {{ demo_organization_deletion.strftime('%B %d, %Y') }} 🗑️</p>+ {% endif %}{% set realm_is_scrubbed = realm_support_data[realm.id].is_scrubbed %}{% if realm_is_scrubbed %}<b>Realm has been scrubbed</b>@@ -24,6 +31,11 @@<a target="_blank" rel="noopener noreferrer" href="/stats/realm/{{ realm.string_id }}/">stats</a> |<a target="_blank" rel="noopener noreferrer" href="/realm_activity/{{ realm.string_id }}/">activity</a><br /><b>Date created</b>: {{ realm.date_created|timesince }} ago<br />+ {% set first_human_user = realm.get_first_human_user() %}+ {% if demo_organization_deletion and first_human_user.delivery_email == "" %}+ <b>Demo organization owner has not configured an email address.</b>+ <br />+ {% else %}{% set owner_emails_string = get_realm_owner_emails_as_string(realm) %}<b>Owners</b>: {{ owner_emails_string }}{% if owner_emails_string %}@@ -40,7 +52,6 @@</a>{% endif %}<br />- {% set first_human_user = realm.get_first_human_user() %}{% if first_human_user %}<b>First human user</b>: {{ first_human_user.delivery_email }}<a title="Copy emails" class="copy-button" data-clipboard-text="{{ first_human_user.delivery_email }}">@@ -62,6 +73,7 @@<b>Billing admins</b>:<br />{% endif %}+ {% endif %}<br />{% with %}{% set realm = realm %}@@ -142,6 +154,7 @@</form>{% endif %}</div>+ {% if not demo_organization_deletion %}{% if realm.deactivated %}<div class="support-sponsorship-container">{% with %}@@ -198,6 +211,7 @@{% endwith %}</div>{% endif %}+ {% endif %}{% if realm.deactivated %}<form method="POST" class="scrub-realm-form support-form"><h3>❌ Scrub realm</h3>