Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Add hint about support on the sponsorship pending page.
Mateusz Manderaf482fc2a736e
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.pyindex e70c3a6f446..13ce88f06ab 100644--- a/corporate/tests/test_stripe.py+++ b/corporate/tests/test_stripe.py@@ -2293,6 +2293,20 @@ class StripeTest(StripeTestCase):self.assert_in_success_response(["Your organization has requested sponsored or discounted hosting."], response)+ self.assert_in_success_response(+ [+ 'Please <a href="mailto:[email protected]">contact Zulip support</a> if you have any questions or concerns.'+ ],+ response,+ )+ # Ensure that the other "contact support" footer is not displayed, since that would be+ # duplicate.+ self.assert_not_in_success_response(+ [+ 'Contact <a href="mailto:[email protected]">[email protected]</a> for billing history.'+ ],+ response,+ )self.login_user(self.example_user("othello"))response = self.client_get("/billing/")@@ -2309,6 +2323,12 @@ class StripeTest(StripeTestCase):["Your organization is fully sponsored and is on the <b>Zulip Cloud Standard</b>"],response,)+ self.assert_in_success_response(+ [+ 'Contact <a href="mailto:[email protected]">[email protected]</a> for billing history.'+ ],+ response,+ )def test_redirect_for_billing_home(self) -> None:user = self.example_user("iago")diff --git a/templates/corporate/billing.html b/templates/corporate/billing.htmlindex 2cc37c1d26b..7909af72322 100644--- a/templates/corporate/billing.html+++ b/templates/corporate/billing.html@@ -194,6 +194,8 @@<div class="tab-content">{% if sponsorship_pending %}<h3>Your organization has requested sponsored or discounted hosting.</h3>+ <br />+ Please <a href="mailto:[email protected]">contact Zulip support</a> if you have any questions or concerns.{% elif is_sponsored %}<center><p>@@ -214,11 +216,14 @@</center>{% endif %}</div>+ {% if not sponsorship_pending %}+ {# In the other case, we're displaying a different message about contacting support. #}<div class="support-link"><p>Contact <a href="mailto:[email protected]">[email protected]</a> for billing history.</p></div>+ {% endif %}{% else %}<p>You must be an organization owner or a billing administrator to view this page.