From 46040e084253daae548e580d02deea0204d5420f Mon Sep 17 00:00:00 2001 From: Restioson Date: Tue, 8 Oct 2024 14:14:16 +0200 Subject: [PATCH] drop: DjLint formatting --- app/pyproject.toml | 3 + app/templates/400.html | 9 +- app/templates/403.html | 9 +- app/templates/404.html | 9 +- app/templates/500.html | 7 +- app/templates/admin/base_site.html | 33 ++- app/templates/app/_nav_item.html | 4 +- app/templates/app/_navbar_items.html | 22 +- app/templates/app/_pagination.html | 76 +++-- app/templates/app/_search_filter.html | 23 +- .../app/_subj_lang_institution_filter.html | 84 +++--- app/templates/app/contact.html | 119 ++++---- app/templates/app/document_detail.html | 124 ++++---- app/templates/app/documents.html | 83 +++--- app/templates/app/home.html | 149 +++++----- app/templates/app/institution_detail.html | 108 +++---- app/templates/app/institutions.html | 100 +++---- app/templates/app/languages.html | 110 ++++--- app/templates/app/legal_notices.html | 161 +++++----- app/templates/app/project_detail.html | 145 ++++----- app/templates/app/projects.html | 119 ++++---- app/templates/app/search.html | 213 +++++++------- app/templates/app/subjects.html | 112 ++++--- app/templates/base.html | 274 ++++++++++-------- app/templates/base_error.html | 10 +- app/templates/base_htmx.html | 63 ++-- app/templates/django/forms/field.html | 29 +- app/templates/registration/login.html | 31 +- .../registration/password_change_done.html | 13 +- .../registration/password_change_form2.html | 32 +- .../registration/password_reset_complete.html | 16 +- .../registration/password_reset_confirm.html | 38 +-- .../registration/password_reset_done.html | 28 +- .../registration/password_reset_form.html | 32 +- app/templates/registration/register.html | 18 +- .../registration/registration_base.html | 18 +- 36 files changed, 1217 insertions(+), 1207 deletions(-) diff --git a/app/pyproject.toml b/app/pyproject.toml index 5be1384c..3f548849 100644 --- a/app/pyproject.toml +++ b/app/pyproject.toml @@ -8,3 +8,6 @@ select = [ "I", "W" ] + +[tool.djlint] +profile = "django" diff --git a/app/templates/400.html b/app/templates/400.html index da81bca7..5659e1fa 100644 --- a/app/templates/400.html +++ b/app/templates/400.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Bad request (400)" %}{% endblock %} -{% block error_message %}{% trans "The server cannot process the request due to client error." %}{% endblock %} +{% block error_title %} + {% trans "Bad request (400)" %} +{% endblock %} +{% block error_message %} + {% trans "The server cannot process the request due to client error." %} +{% endblock %} diff --git a/app/templates/403.html b/app/templates/403.html index 8b8dbb58..33fa6d65 100644 --- a/app/templates/403.html +++ b/app/templates/403.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Forbidden (403)" %}{% endblock %} -{% block error_message %}{% trans "You do not have permission to access on this server." %}{% endblock %} +{% block error_title %} + {% trans "Forbidden (403)" %} +{% endblock %} +{% block error_message %} + {% trans "You do not have permission to access on this server." %} +{% endblock %} diff --git a/app/templates/404.html b/app/templates/404.html index 649e22c3..1b152ae0 100644 --- a/app/templates/404.html +++ b/app/templates/404.html @@ -1,5 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Not found (404)" %}{% endblock %} -{% block error_message %}{% trans "The requested page was not found on this server." %}{% endblock %} +{% block error_title %} + {% trans "Not found (404)" %} +{% endblock %} +{% block error_message %} + {% trans "The requested page was not found on this server." %} +{% endblock %} diff --git a/app/templates/500.html b/app/templates/500.html index be6be8d4..1782d0c3 100644 --- a/app/templates/500.html +++ b/app/templates/500.html @@ -1,7 +1,8 @@ {% extends "base_error.html" %} {% load i18n %} - -{% block error_title %}{% trans "Internal Server Error (500)" %}{% endblock %} +{% block error_title %} + {% trans "Internal Server Error (500)" %} +{% endblock %} {% block error_message %} -{% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} + {% trans "The server encountered an unexpected condition that prevented it from fulfilling the request." %} {% endblock %} diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html index 84dfac52..f9e2fddc 100644 --- a/app/templates/admin/base_site.html +++ b/app/templates/admin/base_site.html @@ -10,25 +10,26 @@ should be incorporated here, and update the links above that serve as the point of comparison. {% endcomment %} - {% load static %} {% load i18n %} - -{% block title %}{% if subtitle %}{{ subtitle }} | {% endif %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} - +{% block title %} + {% if subtitle %}{{ subtitle }} |{% endif %} + {{ title }} | {{ site_title|default:_("Django site admin") }} +{% endblock %} {% block extrastyle %} - - - + + + {% endblock %} - {% block branding %} -

- - - -

-{% if user.is_anonymous %} - {% include "admin/color_theme_toggle.html" %} -{% endif %} +

+ + + +

+ {% if user.is_anonymous %} + {% include "admin/color_theme_toggle.html" %} + {% endif %} {% endblock %} diff --git a/app/templates/app/_nav_item.html b/app/templates/app/_nav_item.html index 5fc7f8ec..fde3473b 100644 --- a/app/templates/app/_nav_item.html +++ b/app/templates/app/_nav_item.html @@ -1,8 +1,6 @@ diff --git a/app/templates/app/_navbar_items.html b/app/templates/app/_navbar_items.html index 5cf6bcde..13e41d45 100644 --- a/app/templates/app/_navbar_items.html +++ b/app/templates/app/_navbar_items.html @@ -1,14 +1,14 @@ {% load i18n %} {% spaceless %} - + {% endspaceless %} diff --git a/app/templates/app/_pagination.html b/app/templates/app/_pagination.html index 9579749b..d9224e3f 100644 --- a/app/templates/app/_pagination.html +++ b/app/templates/app/_pagination.html @@ -1,10 +1,10 @@ {% load i18n %} {% spaceless %} -{% if page_obj.has_previous or page_obj.has_next %} -