Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
templates: Add CSS formatting to no available licenses page.
Lauryn Menard601d8101f5e6
diff --git a/templates/zerver/no_spare_licenses.html b/templates/zerver/no_spare_licenses.htmlindex 9aacbb210b7..46cb35384cd 100644--- a/templates/zerver/no_spare_licenses.html+++ b/templates/zerver/no_spare_licenses.html@@ -5,16 +5,21 @@{% endblock %}{% block portico_content %}-<br/>-<br/>-<br/>--<h3>{{ _("This organization cannot accept new members right now.") }}</h3>--<p>- {% 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 %}-</p>+<div class="app portico-page">+ <div class="app-main portico-page-container center-block flex full-page account-creation new-style">+ <div class="inline-block">+ <div class="get-started">+ <h1>{{ _("Organization cannot accept new members right now") }}</h1>+ </div>+ <div class="white-box">+ <p>+ {% trans %}New members cannot currently join <a href="{{ realm_uri }}">{{ realm_name }}</a> because all Zulip Cloud licenses are in use.{% endtrans %}+ </p>+ <p>+ {{ _("Please contact the person who invited you and ask them to increase the number of licenses, then try again.") }}+ </p>+ </div>+ </div>+ </div>+</div>{% endblock %}diff --git a/zerver/tests/test_invite.py b/zerver/tests/test_invite.pyindex c825e4cca3a..b3ec2f722ff 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(