From 41df20648d7b32cbb134f16cc2665c6d042e7645 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 29 May 2024 09:18:50 +0000 Subject: [PATCH] templates: Use the same outer HTML structure. This will be helpful when refactoring them to use a common template. No visual changes. Tested by create email confirmation link and then manipulated it to get to various states. Force rendered the realm_creation_disabled template instead of link_malformed template to check it. --- .../confirmation/link_does_not_exist.html | 22 +++++++++-------- templates/confirmation/link_malformed.html | 24 ++++++++++--------- templates/zerver/realm_creation_disabled.html | 24 ++++++++++--------- 3 files changed, 38 insertions(+), 32 deletions(-) diff --git a/templates/confirmation/link_does_not_exist.html b/templates/confirmation/link_does_not_exist.html index e98786c580..a33f0f1a65 100644 --- a/templates/confirmation/link_does_not_exist.html +++ b/templates/confirmation/link_does_not_exist.html @@ -6,16 +6,18 @@ {% block portico_content %}
-
- -
-
-

{{ _("Whoops. We couldn't find your confirmation link in the system.") }}

-

- {% trans %} - Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly. - {% endtrans %} -

+
+
+ +
+
+

{{ _("Whoops. We couldn't find your confirmation link in the system.") }}

+

+ {% trans %} + Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly. + {% endtrans %} +

+
diff --git a/templates/confirmation/link_malformed.html b/templates/confirmation/link_malformed.html index 6233c08442..c14b770b15 100644 --- a/templates/confirmation/link_malformed.html +++ b/templates/confirmation/link_malformed.html @@ -6,17 +6,19 @@ {% block portico_content %}
-
- -
-
-

{{ _("Whoops. The confirmation link is malformed.") }}

-

{{ _("Make sure you copied the link correctly in to your browser. If you're still encountering this page, it's probably our fault. We're sorry.") }}

-

- {% trans %} - Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly. - {% endtrans %} -

+
+
+ +
+
+

{{ _("Whoops. The confirmation link is malformed.") }}

+

{{ _("Make sure you copied the link correctly in to your browser. If you're still encountering this page, it's probably our fault. We're sorry.") }}

+

+ {% trans %} + Anyway, shoot us a line at {{ support_email_html_tag }} and we'll get this resolved shortly. + {% endtrans %} +

+
diff --git a/templates/zerver/realm_creation_disabled.html b/templates/zerver/realm_creation_disabled.html index c35d86e2a1..0954f883e0 100644 --- a/templates/zerver/realm_creation_disabled.html +++ b/templates/zerver/realm_creation_disabled.html @@ -6,17 +6,19 @@ {% block portico_content %}
-
- -
-
-

{{ _("Organization creation link required") }}

-

- {% trans %} - Creating a new organization on this server requires a valid organization creation link. - Please see documentation on creating a new organization for more information. - {% endtrans %} -

+
+
+ +
+
+

{{ _("Organization creation link required") }}

+

+ {% trans %} + Creating a new organization on this server requires a valid organization creation link. + Please see documentation on creating a new organization for more information. + {% endtrans %} +

+