Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

sponsorship: Remove free_trial from sponsorship page context.

Lauryn Menard18686e06bbec
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 65fffe4c01d..d94df583cb1 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -3415,7 +3415,6 @@ class BillingSession(ABC):
plan = get_current_plan_by_customer(customer)
if plan is not None:
context["plan_name"] = plan.name
- context["free_trial"] = plan.is_free_trial()
context["is_server_on_legacy_plan"] = (
plan.tier == CustomerPlan.TIER_SELF_HOSTED_LEGACY
)
diff --git a/templates/corporate/billing/sponsorship.html b/templates/corporate/billing/sponsorship.html
index 20536eb3ab4..6d76fb2c920 100644
--- a/templates/corporate/billing/sponsorship.html
+++ b/templates/corporate/billing/sponsorship.html
@@ -54,8 +54,6 @@
<div id="sponsored-org-current-plan" class="not-editable-realm-field">
{% if is_sponsored %}
<a href="{{ billing_base_url }}/plans/">{{ sponsorship_plan_name }}</a>
- {% elif free_trial %}
- <a href="{{ billing_base_url }}/plans/">{{ plan_name }}</a> <i>(free trial)</i>
{% elif is_server_on_legacy_plan %}
<a href="{{ billing_base_url }}/plans/">{{ plan_name.replace(" (legacy plan)", "") }}</a> <i>(legacy plan)</i>
{% else %}