mirror of https://github.com/zulip/zulip.git
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`.
This commit is contained in:
parent
32521bf7a8
commit
601d8101f5
|
@ -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 %}
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue