support: Move and highlight current sponsorship information.

Moves the note about being on the sponsored Community plan to be
under the remote server or realm name.

Adds a note about a remote server or realm with a partial discount
set, which is another type of sponsorship.

Highlights these notes visually with emojis for support admin.
This commit is contained in:
Lauryn Menard 2023-12-15 17:12:41 +01:00 committed by Tim Abbott
parent f92152fafb
commit be6c90f608
2 changed files with 12 additions and 6 deletions

View File

@ -1,13 +1,16 @@
<div class="remote-realm-information">
<span class="label">remote realm</span>
<h3>{{ remote_realm.name }}</h3>
{% if remote_realm.plan_type == SPONSORED_PLAN_TYPE %}
<h4>On 100% sponsored Zulip Community plan 🎉</h4>
{% endif %}
{% if support_data[remote_realm.id].sponsorship_data.default_discount %}
<h4>Has a discount 🟢</h4>
{% endif %}
<b>Remote server hostname:</b> {{ remote_realm.host }}<br />
<b>Date created</b>: {{ remote_realm.realm_date_created.strftime('%d %B %Y') }}<br />
<b>Org type</b>: {{ get_org_type_display_name(remote_realm.org_type) }}<br />
<b>Plan type</b>: {{ get_plan_type_name(remote_realm.plan_type) }}<br />
{% if remote_realm.plan_type == SPONSORED_PLAN_TYPE %}
<h4>On 100% sponsored Zulip Community plan.</h4>
{% endif %}
</div>
{% if remote_realm.plan_type != SPONSORED_PLAN_TYPE %}

View File

@ -38,6 +38,12 @@
<div class="remote-server-information">
<span class="label">remote server</span>
<h3>{{ remote_server.hostname }}</h3>
{% if remote_server.plan_type == SPONSORED_PLAN_TYPE %}
<h4>On 100% sponsored Zulip Community plan 🎉</h4>
{% endif %}
{% if remote_servers_support_data[remote_server.id].sponsorship_data.default_discount %}
<h4>Has a discount 🟢</h4>
{% endif %}
<b>Contact email</b>: {{ remote_server.contact_email }}
<a title="Copy email" class="copy-button" data-copytext="{{ remote_server.contact_email }}">
<i class="fa fa-copy"></i>
@ -47,9 +53,6 @@
<b>Max monthly messages</b>: {{ remote_server_to_max_monthly_messages[remote_server.id] }}<br />
<b>Plan type</b>: {{ get_plan_type_name(remote_server.plan_type) }}<br />
<b>Has remote realm(s)</b>: {{ remote_realms[remote_server.id] != [] }}
{% if remote_server.plan_type == SPONSORED_PLAN_TYPE %}
<h4>On 100% sponsored Zulip Community plan.</h4>
{% endif %}
</div>
{% if remote_server.plan_type != SPONSORED_PLAN_TYPE %}