portico: Correct layout on deactivation pages.

This commit is contained in:
Karl Stolley 2023-12-12 16:53:55 -06:00 committed by Tim Abbott
parent 2b879e646c
commit 9cc0ded092
3 changed files with 10 additions and 11 deletions

View File

@ -786,7 +786,9 @@ class TestGenerateDeactivationLink(BouncerTestCase):
result = self.client_post( result = self.client_post(
f"/server/{server.uuid!s}/deactivate/", {"confirmed": "true"}, subdomain="selfhosting" f"/server/{server.uuid!s}/deactivate/", {"confirmed": "true"}, subdomain="selfhosting"
) )
self.assert_in_success_response([f"Registration deactivated for {server.hostname}"], result) self.assert_in_success_response(
[f"Registration deactivated for<br />{server.hostname}"], result
)
server.refresh_from_db() server.refresh_from_db()
self.assertEqual(server.deactivated, True) self.assertEqual(server.deactivated, True)

View File

@ -6,12 +6,11 @@
{% endblock %} {% endblock %}
{% block portico_content %} {% block portico_content %}
<div id="server-deactivate-page" class="register-account flex full-page"> <div id="server-deactivate-page" class="register-account account-deactivation flex full-page">
<div class="center-block new-style"> <div class="new-style">
<div class="pitch"> <div class="pitch">
<h1> <h1>
Deactivate registration for {{ server_hostname }}? Deactivate registration for<br />{{ server_hostname }}?
</h1> </h1>
</div> </div>
<div class="white-box"> <div class="white-box">

View File

@ -7,16 +7,14 @@
{% block portico_content %} {% block portico_content %}
<div class="app portico-page"> <div class="app portico-page">
<div class="app-main portico-page-container center-block flex full-page account-creation account-email-confirm-container new-style"> <div class="app-main portico-page-container flex full-page account-deactivation account-email-confirm-container new-style">
<div class="pitch"> <div class="pitch">
<h1> <h1>
Registration deactivated for {{ server_hostname }} Registration deactivated for<br />{{ server_hostname }}
</h1> </h1>
</div> </div>
<div class="inline-block"> <div class="white-box">
<div class="white-box"> <p>Your server's registration has been deactivated.</p>
<p>Your server's registration has been deactivated.</p>
</div>
</div> </div>
</div> </div>
</div> </div>