From 0ca3a1bfa944e10ae7fe9934aa173bb8556c55b2 Mon Sep 17 00:00:00 2001 From: CocoByte Date: Thu, 19 Dec 2024 21:56:46 -0700 Subject: [PATCH] strip out extra spaces in html css class if/else statements. Add member page is left-justified. --- src/registrar/context_processors.py | 1 + src/registrar/templates/401.html | 4 ++-- src/registrar/templates/403.html | 4 ++-- src/registrar/templates/404.html | 4 ++-- src/registrar/templates/500.html | 4 ++-- src/registrar/templates/admin/app_list.html | 2 +- src/registrar/templates/admin/fieldset.html | 2 +- src/registrar/templates/admin/transfer_user.html | 2 +- src/registrar/templates/base.html | 2 +- src/registrar/templates/dashboard_base.html | 2 +- .../templates/django/admin/includes/details_button.html | 2 +- .../templates/django/admin/includes/domain_fieldset.html | 2 +- .../django/admin/multiple_choice_list_filter.html | 4 ++-- src/registrar/templates/domain_base.html | 4 ++-- src/registrar/templates/domain_request_form.html | 4 ++-- src/registrar/templates/domain_request_intro.html | 6 +++--- .../templates/domain_request_withdraw_confirmation.html | 6 +++--- src/registrar/templates/domain_sidebar.html | 2 +- src/registrar/templates/home.html | 4 ++-- src/registrar/templates/includes/banner-error.html | 2 +- src/registrar/templates/includes/banner-info.html | 2 +- .../templates/includes/banner-non-production-alert.html | 2 +- .../templates/includes/banner-service-disruption.html | 2 +- src/registrar/templates/includes/banner-site-alert.html | 2 +- .../templates/includes/banner-system-outage.html | 2 +- src/registrar/templates/includes/banner-warning.html | 2 +- .../templates/includes/domain_request_status_manage.html | 8 ++++---- .../templates/includes/domain_requests_table.html | 6 +++--- src/registrar/templates/includes/domains_table.html | 2 +- src/registrar/templates/includes/members_table.html | 2 +- .../templates/includes/request_status_manage.html | 8 ++++---- src/registrar/templates/includes/required_fields.html | 2 +- src/registrar/templates/portfolio_base.html | 6 +++--- src/registrar/templates/portfolio_members.html | 2 +- src/registrar/templates/profile.html | 4 ++-- 35 files changed, 58 insertions(+), 57 deletions(-) diff --git a/src/registrar/context_processors.py b/src/registrar/context_processors.py index b30719cd0..2dbc30abf 100644 --- a/src/registrar/context_processors.py +++ b/src/registrar/context_processors.py @@ -117,6 +117,7 @@ def is_widescreen_centered(request): ] exclude_paths = [ "/domains/edit", + "members/new-member/", ] is_excluded = any(exclude_path in request.path for exclude_path in exclude_paths) diff --git a/src/registrar/templates/401.html b/src/registrar/templates/401.html index 9ea4a5397..848d9901a 100644 --- a/src/registrar/templates/401.html +++ b/src/registrar/templates/401.html @@ -5,8 +5,8 @@ {% block title %}{% translate "Unauthorized | " %}{% endblock %} {% block content %} -
-
+
+

{% translate "You are not authorized to view this page" %} diff --git a/src/registrar/templates/403.html b/src/registrar/templates/403.html index 9e37e29a8..5f0faa5a5 100644 --- a/src/registrar/templates/403.html +++ b/src/registrar/templates/403.html @@ -5,8 +5,8 @@ {% block title %}{% translate "Forbidden | " %}{% endblock %} {% block content %} -
-
+
+

{% translate "You're not authorized to view this page." %} diff --git a/src/registrar/templates/404.html b/src/registrar/templates/404.html index 11f2b982f..4747ae846 100644 --- a/src/registrar/templates/404.html +++ b/src/registrar/templates/404.html @@ -5,8 +5,8 @@ {% block title %}{% translate "Page not found | " %}{% endblock %} {% block content %} -
-
+
+

{% translate "We couldn’t find that page" %} diff --git a/src/registrar/templates/500.html b/src/registrar/templates/500.html index f37b6f94f..661bae9f9 100644 --- a/src/registrar/templates/500.html +++ b/src/registrar/templates/500.html @@ -5,8 +5,8 @@ {% block title %}{% translate "Server error | " %}{% endblock %} {% block content %} -
-
+
+

{% translate "We're having some trouble." %} diff --git a/src/registrar/templates/admin/app_list.html b/src/registrar/templates/admin/app_list.html index 49fb59e79..aaf3dc423 100644 --- a/src/registrar/templates/admin/app_list.html +++ b/src/registrar/templates/admin/app_list.html @@ -39,7 +39,7 @@ {% for model in app.models %} {% if model.admin_url %} - {{ model.name }} + {{ model.name }} {% else %} {{ model.name }} {% endif %} diff --git a/src/registrar/templates/admin/fieldset.html b/src/registrar/templates/admin/fieldset.html index 40cd98ca8..20b76217b 100644 --- a/src/registrar/templates/admin/fieldset.html +++ b/src/registrar/templates/admin/fieldset.html @@ -61,7 +61,7 @@ https://github.com/django/django/blob/main/django/contrib/admin/templates/admin/ {% if field.field.help_text %} {# .gov override #} {% block help_text %} -
+
{{ field.field.help_text|safe }}
{% endblock help_text %} diff --git a/src/registrar/templates/admin/transfer_user.html b/src/registrar/templates/admin/transfer_user.html index 3ba136b93..61444b173 100644 --- a/src/registrar/templates/admin/transfer_user.html +++ b/src/registrar/templates/admin/transfer_user.html @@ -43,7 +43,7 @@