diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6fa14369..c2cb0d5c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,3 +27,9 @@ jobs: - name: Run Biome run: biome ci . + + - name: Install djhtml + run: pip install djhtml + + - name: Run djhtml + run: djhtml pgcommitfest/*/templates/*.html --tabwidth=1 --check diff --git a/Makefile b/Makefile index 2a9ad3a9..4950827f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ format: ruff format npx @biomejs/biome format --write + djhtml pgcommitfest/*/templates/*.html --tabwidth=1 lint: ruff check diff --git a/dev_requirements.txt b/dev_requirements.txt index 66d7ae13..2b0518b5 100644 --- a/dev_requirements.txt +++ b/dev_requirements.txt @@ -2,3 +2,4 @@ uwsgi pycodestyle ruff +djhtml diff --git a/pgcommitfest/commitfest/templates/404.html b/pgcommitfest/commitfest/templates/404.html index ccf5146c..73a24c02 100644 --- a/pgcommitfest/commitfest/templates/404.html +++ b/pgcommitfest/commitfest/templates/404.html @@ -1,7 +1,7 @@ {%extends "base.html" %} {%block title%}Not found{%endblock%} {%block contents%} -
The specified URL was not found.
+The specified URL was not found.
{%endblock%} diff --git a/pgcommitfest/commitfest/templates/activity.html b/pgcommitfest/commitfest/templates/activity.html index 1d5a060f..621155ee 100644 --- a/pgcommitfest/commitfest/templates/activity.html +++ b/pgcommitfest/commitfest/templates/activity.html @@ -2,25 +2,25 @@ {%load commitfest %} {%block contents%} -Time | -User | -Patch | -Activity | -
---|---|---|---|
{{a.date}} | -{{a.by}} | -{{a.name}} | -{{a.what}} | -
Time | +User | +Patch | +Activity | +
---|---|---|---|
{{a.date}} | +{{a.by}} | +{{a.name}} | +{{a.what}} | +