{% set demo_organization_deletion = realm.demo_organization_scheduled_deletion_date %}
Cloud realm {% if realm.deactivated %} DEACTIVATED {% endif %} {% if demo_organization_deletion %} DEMO ORGANIZATION {% endif %}

{{ realm.name }}

{% if realm.deactivated %} {% if realm.scheduled_deletion_date %}

Scheduled data deletion on {{ realm.scheduled_deletion_date.strftime('%B, %d %Y') }} ⏰

{% else %}

No scheduled data deletion date ⛔

{% endif %} {% endif %} {% if realm.plan_type == SPONSORED_PLAN_TYPE %}

On 100% sponsored Zulip Standard Free 🎉

{% endif %} {% if realm_support_data[realm.id].sponsorship_data.has_discount %}

Has a discount 💸

{% endif %} {% if demo_organization_deletion %}

Demo data deletion on {{ demo_organization_deletion.strftime('%B %d, %Y') }} 🗑️

{% endif %} {% set realm_is_scrubbed = realm_support_data[realm.id].is_scrubbed %} {% if realm_is_scrubbed %} Realm has been scrubbed {% elif realm.deactivated_redirect %} Placeholder realm
Redirects to: {{ realm.deactivated_redirect }} {% else %} URL: {{ realm.url }} | stats | activity
Date created: {{ realm.date_created|timesince }} ago
{% set first_human_user = realm.get_first_human_user() %} {% if demo_organization_deletion and first_human_user.delivery_email == "" %} Demo organization owner has not configured an email address.
{% else %} {% set owner_emails_string = get_realm_owner_emails_as_string(realm) %} Owners: {{ owner_emails_string }} {% if owner_emails_string %} {% endif %}
{% set admin_emails_string = get_realm_admin_emails_as_string(realm) %} Admins: {{ admin_emails_string }} {% if admin_emails_string %} {% endif %}
{% if first_human_user %} First human user: {{ first_human_user.delivery_email }}
{% else %} First human user:
{% endif %} {% set billing_admins = realm.get_billing_admins_delivery_email() %} {% if billing_admins %} Billing admins: {{ billing_admins }}
{% else %} Billing admins:
{% endif %} {% endif %}
{% with %} {% set realm = realm %} {% set user_data = realm_support_data[realm.id].user_data %} {% include 'corporate/support/basic_realm_data.html' %} {% endwith %}
File upload usage: {{ realm_support_data[realm.id].file_upload_usage }}
{% endif %}
{% if realm_is_scrubbed %} {% elif not realm.deactivated_redirect %}

🛠️ Realm management:

{% if realm.deactivated %}
Reactivate:
{{ csrf_input }}
{% else %}
Deactivate: (select reason)
{{ csrf_input }}
Organization type:
{{ csrf_input }}
Plan type:
{{ csrf_input }}
Maximum daily invitations:
{{ csrf_input }}
New subdomain: (max 40 characters)
{{ csrf_input }}
{% endif %}
{% if not demo_organization_deletion %} {% if realm.deactivated %}
{% with %} {% set sponsorship_data = realm_support_data[realm.id].sponsorship_data %} {% set dollar_amount = dollar_amount %} {% include 'corporate/support/sponsorship_details.html' %} {% endwith %}
{% elif realm.plan_type != SPONSORED_PLAN_TYPE %}
{% with %} {% set sponsorship_data = realm_support_data[realm.id].sponsorship_data %} {% set PLAN_TYPES = REALM_PLAN_TYPES_FOR_DISCOUNT %} {% set remote_id = realm.id %} {% set remote_type = "realm_id" %} {% include 'corporate/support/sponsorship_forms_support.html' %} {% endwith %}
{% endif %} {% if realm_support_data[realm.id].plan_data.current_plan %}
{% with %} {% set plan_data = realm_support_data[realm.id].plan_data %} {% set dollar_amount = dollar_amount %} {% include 'corporate/support/current_plan_details.html' %} {% endwith %} {% with %} {% set current_plan = realm_support_data[realm.id].plan_data.current_plan %} {% set remote_id = realm.id %} {% set remote_type = "realm_id" %} {% include 'corporate/support/current_plan_forms_support.html' %} {% endwith %}
{% endif %} {% if realm_support_data[realm.id].plan_data.next_plan %}
{% with %} {% set plan_data = realm_support_data[realm.id].plan_data %} {% set dollar_amount = dollar_amount %} {% set remote_id = realm.id %} {% set remote_type = "realm_id" %} {% include 'corporate/support/next_plan_details.html' %} {% endwith %}
{% elif not realm.deactivated %}
{% with %} {% set plan_data = realm_support_data[realm.id].plan_data %} {% set remote_id = realm.id %} {% set remote_type = "realm_id" %} {% include 'corporate/support/next_plan_forms_support.html' %} {% endwith %}
{% endif %} {% endif %} {% if realm.deactivated %}
{% with %} {% set deactivation_data = realm_support_data[realm.id].deactivation_data %} {% include 'corporate/support/deactivation_data.html' %} {% endwith %}
{{ csrf_input }}
{% endif %}
{% endif %}