From 601d8101f5e6a7726c97f0e5b6347a1df82093e7 Mon Sep 17 00:00:00 2001 From: Lauryn Menard Date: Wed, 19 Apr 2023 16:22:46 +0200 Subject: [PATCH] templates: Add CSS formatting to no available licenses page. Adds CSS formatting for `no_spare_licenses.html`. Uses the `white-box` style because this page is a redirect when a user tries to register for a Zulip Cloud organization that does not have any available licenses for new users. Updates reference to `realm_name` to be a link to the `realm_uri`. --- templates/zerver/no_spare_licenses.html | 29 +++++++++++++++---------- zerver/tests/test_invite.py | 2 +- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/templates/zerver/no_spare_licenses.html b/templates/zerver/no_spare_licenses.html index 9aacbb210b..46cb35384c 100644 --- a/templates/zerver/no_spare_licenses.html +++ b/templates/zerver/no_spare_licenses.html @@ -5,16 +5,21 @@ {% endblock %} {% block portico_content %} -
-
-
- -

{{ _("This organization cannot accept new members right now.") }}

- -

- {% trans %} - New members cannot join this organization because all Zulip licenses are currently in use. Please contact the person who - invited you and ask them to increase the number of licenses, then try again. - {% endtrans %} -

+
+ +
{% endblock %} diff --git a/zerver/tests/test_invite.py b/zerver/tests/test_invite.py index c825e4cca3..b3ec2f722f 100644 --- a/zerver/tests/test_invite.py +++ b/zerver/tests/test_invite.py @@ -1542,7 +1542,7 @@ so we didn't send them an invitation. We did send invitations to everyone else!" self.client_post(url, {"key": registration_key, "from_confirmation": 1, "full_name": "bob"}) response = self.submit_reg_form_for_user(email, "password", key=registration_key) self.assert_in_success_response( - ["New members cannot join this organization because all Zulip licenses are"], response + ["Organization cannot accept new members right now"], response ) guest_prereg_user = PreregistrationUser.objects.create(