From afb998739768e885d2ba730296c31701d5840c4a Mon Sep 17 00:00:00 2001 From: Friedel Wolff Date: Thu, 12 Sep 2024 14:51:13 +0200 Subject: [PATCH 1/3] Mark up telephone number as a tag --- app/templates/app/contact.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/app/contact.html b/app/templates/app/contact.html index c4faafd8..3cec35ba 100644 --- a/app/templates/app/contact.html +++ b/app/templates/app/contact.html @@ -18,7 +18,7 @@

{% trans "Contact details for more information" %}

South Africa {% endblocktrans %}

-

+27 18 285 2750

+

+27 (0)18 285-2750

info@sadilar.org

From 8f3a0febc69206afd394d1ba87c7b57bf3378e01 Mon Sep 17 00:00:00 2001 From: Friedel Wolff Date: Thu, 12 Sep 2024 14:53:47 +0200 Subject: [PATCH 2/3] Remove unnecessary final slash in self-closing tags Although not invalid, it makes it easier to make a mistake with unquoted attributes before, and is plainly not needed in HTML5. --- app/templates/admin/base_site.html | 2 +- app/templates/app/home.html | 2 +- app/templates/app/search.html | 4 ++-- app/templates/base.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/templates/admin/base_site.html b/app/templates/admin/base_site.html index 2f980435..ad9b5160 100644 --- a/app/templates/admin/base_site.html +++ b/app/templates/admin/base_site.html @@ -19,7 +19,7 @@ {% block extrastyle %} - + {% endblock %} {% block branding %} diff --git a/app/templates/app/home.html b/app/templates/app/home.html index 5bc37c90..bccd5ade 100644 --- a/app/templates/app/home.html +++ b/app/templates/app/home.html @@ -46,7 +46,7 @@

{% trans "Search" %}

- +

diff --git a/app/templates/app/search.html b/app/templates/app/search.html index 304d38da..c3ba9eb6 100644 --- a/app/templates/app/search.html +++ b/app/templates/app/search.html @@ -34,7 +34,7 @@

{% trans "Search a term" %}

value="{{ request.GET.search }}"> {% if page_obj.paginator.num_pages > 1 %} @@ -111,7 +111,7 @@

{% trans "Filters" %}

{% trans "Alter search terms above" %} - + {% trans 'Reset' %} {% endif %} diff --git a/app/templates/base.html b/app/templates/base.html index 2ddb0736..a2864648 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -7,11 +7,11 @@ {% block title %}{% trans "SADiLaR" %}{% endblock %} - + - + {# htmx JS at the end of body seems to create problems when navigating through browser history #} From c484fdd1d334adc65f1fd2cf63fa790a206f0b3e Mon Sep 17 00:00:00 2001 From: Friedel Wolff Date: Thu, 12 Sep 2024 14:54:20 +0200 Subject: [PATCH 3/3] Fix invalid
in

Block-level elements are not allowed in a p tag. --- app/templates/app/home.html | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/templates/app/home.html b/app/templates/app/home.html index bccd5ade..f3001621 100644 --- a/app/templates/app/home.html +++ b/app/templates/app/home.html @@ -42,13 +42,11 @@

{% trans "Search" %}

This platforms hosts terminology and other useful language resources. {% endblocktrans %}

-

-