Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sponsorship: Set page title based on sponsorship status.
Aman Agrawal7cad1f80beba
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.pyindex bb70bc4a3b6..ccfd276fc77 100644--- a/corporate/tests/test_remote_billing.py+++ b/corporate/tests/test_remote_billing.py@@ -326,7 +326,7 @@ class RemoteBillingAuthenticationTest(BouncerTestCase):# some basic expected content.result = self.client_get(result["Location"], subdomain="selfhosting")self.assert_in_success_response(- ["Request Zulip Cloud sponsorship", "Description of your organization"], result+ ["Request Zulip", "sponsorship", "Description of your organization"], result)@responses.activate@@ -451,7 +451,7 @@ class LegacyServerLoginTest(BouncerTestCase):result = self.client_get(result["Location"], subdomain="selfhosting")# TODO Update the string when we have a complete sponsorship page for legacy servers.- self.assert_in_success_response(["Request Zulip Cloud sponsorship"], result)+ self.assert_in_success_response(["Request Zulip", "sponsorship"], result)def test_server_login_next_page_in_form_persists(self) -> None:result = self.client_get("/serverlogin/?next_page=billing", subdomain="selfhosting")diff --git a/templates/corporate/sponsorship.html b/templates/corporate/sponsorship.htmlindex 864c7073c5e..3f1b68a944c 100644--- a/templates/corporate/sponsorship.html+++ b/templates/corporate/sponsorship.html@@ -1,7 +1,24 @@{% extends "zerver/portico.html" %}{% set entrypoint = "sponsorship" %}-{% set PAGE_TITLE = "Request Zulip Cloud sponsorship" %}+{% block title %}+<title>+ {% if is_sponsored or is_sponsorship_pending %}+ Zulip+ {% if is_remotely_hosted %}+ {% else %}+ Cloud+ {% endif %}+ billing for {{ org_name }}+ {% else %}+ Request Zulip+ {% if is_remotely_hosted %}+ {% else %}+ Cloud+ {% endif %} sponsorship+ {% endif %}+</title>+{% endblock %}{% block portico_content %}