Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
remote_billing_login: Show different title for deactivate login.
Aman Agrawalc2636354a583
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.pyindex a80c126323a..bf746299906 100644--- a/corporate/tests/test_remote_billing.py+++ b/corporate/tests/test_remote_billing.py@@ -771,7 +771,7 @@ class TestGenerateDeactivationLink(BouncerTestCase):result = self.client_get(confirmation_url, subdomain="selfhosting")self.assert_in_success_response(- ["Log in to Zulip plan management", server.contact_email], result+ ["Log in to deactivate registration for", server.contact_email], result)payload = {"full_name": "test", "tos_consent": "true"}result = self.client_post(confirmation_url, payload, subdomain="selfhosting")diff --git a/corporate/views/remote_billing_page.py b/corporate/views/remote_billing_page.pyindex 48e182a4c59..e42ccb60e21 100644--- a/corporate/views/remote_billing_page.py+++ b/corporate/views/remote_billing_page.py@@ -597,6 +597,7 @@ def remote_billing_legacy_server_from_login_confirmation_link(args=(confirmation_key,),),"legacy_server_confirmation_flow": True,+ "next_page": prereg_object.next_page,}return render(request,diff --git a/templates/corporate/remote_billing_finalize_login_confirmation.html b/templates/corporate/remote_billing_finalize_login_confirmation.htmlindex 4eba8c9b598..26bb9e7dfb3 100644--- a/templates/corporate/remote_billing_finalize_login_confirmation.html+++ b/templates/corporate/remote_billing_finalize_login_confirmation.html@@ -2,14 +2,24 @@{% set entrypoint = "upgrade" %}{% block title %}-<title>Log in to Zulip plan management for {{ host }} | Zulip</title>+<title>+ {% if next_page and next_page == "deactivate" %}+ Log in to deactivate registration for {{ host }} | Zulip+ {% else %}+ Log in to Zulip plan management for {{ host }} | Zulip+ {% endif %}+</title>{% endblock %}{% block portico_content %}<div id="remote-billing-confirm-login-page" class="register-account flex full-page"><div class="center-block new-style"><div class="pitch">+ {% if next_page and next_page == "deactivate" %}+ <h1>Log in to deactivate registration for<br/>{{ host }}</h1>+ {% else %}<h1>Log in to Zulip plan management for<br/>{{ host }}</h1>+ {% endif %}</div><div class="white-box"><form id="remote-billing-confirm-login-form" method="post" action="{{ action_url }}">