diff --git a/app/pyproject.toml b/app/pyproject.toml index 5be1384..3f54884 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 da81bca..5659e1f 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 8b8dbb5..33fa6d6 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 649e22c..1b152ae 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 be6be8d..1782d0c 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 84dfac5..f9e2fdd 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 5fc7f8e..fde3473 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 5cf6bcd..13e41d4 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 9579749..d9224e3 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 %} -