mirror of https://github.com/zulip/zulip.git
support: Show sponsorship and discount headers for Zulip Cloud.
This commit is contained in:
parent
391c52639f
commit
73029c8348
|
@ -549,6 +549,7 @@ def support(
|
|||
realm_data = get_data_for_cloud_support_view(billing_session)
|
||||
realm_support_data[realm.id] = realm_data
|
||||
context["realm_support_data"] = realm_support_data
|
||||
context["SPONSORED_PLAN_TYPE"] = Realm.PLAN_TYPE_STANDARD_FREE
|
||||
|
||||
def get_realm_owner_emails_as_string(realm: Realm) -> str:
|
||||
return ", ".join(
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
<div class="realm-support-information">
|
||||
<span class="cloud-label">Cloud realm</span>
|
||||
<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>
|
||||
{% endif %}
|
||||
{% if realm_support_data[realm.id].sponsorship_data.has_discount %}
|
||||
<p class="support-section-header">Has a discount 💸</p>
|
||||
{% endif %}
|
||||
<b>URL</b>: <a target="_blank" rel="noopener noreferrer" href="{{ realm.url }}">{{ realm.url }}</a> |
|
||||
<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 />
|
||||
|
|
Loading…
Reference in New Issue