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: Improve page for sponsorship pending orgs.

Aman Agrawal07d29126fd8f
diff --git a/corporate/views/billing_page.py b/corporate/views/billing_page.py
index a3712235d26..6a237700526 100644
--- a/corporate/views/billing_page.py
+++ b/corporate/views/billing_page.py
@@ -64,6 +64,8 @@ def sponsorship_request(request: HttpRequest) -> HttpResponse:
if plan is not None:
context["plan_name"] = plan.name
context["free_trial"] = plan.is_free_trial()
+ else:
+ context["plan_name"] = "Zulip Cloud Free"
add_sponsorship_info_to_context(context, user)
return render(request, "corporate/sponsorship.html", context=context)
diff --git a/templates/corporate/sponsorship.html b/templates/corporate/sponsorship.html
index 3951202ce73..1bd46efafe1 100644
--- a/templates/corporate/sponsorship.html
+++ b/templates/corporate/sponsorship.html
@@ -5,12 +5,16 @@
{% block portico_content %}
-{% if is_sponsored %}
+{% if is_sponsored or is_sponsorship_pending %}
<div class="register-account flex full-page sponsorship-status-page">
<div class="center-block new-style">
<div class="alert alert-success sponsorship-page-success" id="sponsorship-status-success-message-top">
- Zulip is sponsoring a free <a href="https://github.com/plans/">Zulip Cloud Standard</a> plan for this organization. 🎉
+ {% if is_sponsored %}
+ Zulip is sponsoring a free <a href="/plans/">Zulip Cloud Standard</a> plan for this organization. 🎉
+ {% else %}
+ This organization has requested sponsorship for a <a href="/plans/">Zulip Cloud Standard</a> plan. <a href="mailto:[email protected]">Contact Zulip support</a> with any questions or updates.
+ {% endif %}
</div>
<div class="pitch">
<h1>Zulip Cloud billing for {{realm_name}}</h1>
@@ -29,28 +33,14 @@
</div>
</div>
</div>
+ {% if is_sponsored %}
<hr />
<div class="support-link">
<p>
To make changes to your plan or view your billing history <a href="mailto:[email protected]">contact Zulip support</a>.
</p>
</div>
- </div>
-</div>
-
-{% elif is_sponsorship_pending %}
-
-<div class="flex full-page thanks-page sponsorship-status-page">
- <div class="center-block new-style">
- <div class="pitch">
- <h1>Sponsorship request pending for {{realm_name}}</h1>
- </div>
- <div class="white-box">
- <p> This organization has requested sponsorship for a free or discounted <a href="/plans/">Zulip Cloud Standard</a> plan.</p>
- <p>
- Please feel free to <a href="mailto:[email protected]">contact Zulip support</a> with any questions or updates to your request.
- </p>
- </div>
+ {% endif %}
</div>
</div>