From be5d27d2928551281bdc3e79e9652cbfb0a155d2 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Tue, 20 Jun 2023 10:00:02 -0400 Subject: [PATCH] Lint template files with djLint --- Makefile | 4 ++++ umap/templates/404.html | 7 ++++--- umap/templates/500.html | 9 +++++++-- umap/templates/base.html | 9 +++++++-- umap/templates/registration/login.html | 10 +++++----- umap/templates/umap/about_summary.html | 18 +++++++++++++++--- umap/templates/umap/content.html | 12 +++++++----- umap/templates/umap/content_footer.html | 2 +- umap/templates/umap/map_detail.html | 14 +++++++++----- umap/templates/umap/navigation.html | 12 ++++++------ umap/templates/umap/password_change.html | 22 +++++++++++----------- umap/templates/umap/search.html | 2 +- umap/templates/umap/search_bar.html | 6 +++--- 13 files changed, 80 insertions(+), 47 deletions(-) diff --git a/Makefile b/Makefile index 09475d90..3e2af6c2 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ develop: ## Install the test and dev dependencies pretty-templates: ## Prettify template files djlint umap/templates --reformat +.PHONY: lint-templates +lint-templates: ## Lint template files + djlint umap/templates --lint + .PHONY: version version: ## Display the current version @hatch version diff --git a/umap/templates/404.html b/umap/templates/404.html index 615f31e1..1fd8b057 100644 --- a/umap/templates/404.html +++ b/umap/templates/404.html @@ -2,13 +2,14 @@ {% load i18n static %} {% block content %}
- +

4 - + 0 4

Not Found

-{% endblock %} +{% endblock content %} diff --git a/umap/templates/500.html b/umap/templates/500.html index a1c762c8..5f94dfd5 100644 --- a/umap/templates/500.html +++ b/umap/templates/500.html @@ -1,8 +1,11 @@ - + Ooops + +