From 90e7c0416a8e81d05e363a99ad6a5d28eef9a2d5 Mon Sep 17 00:00:00 2001 From: Anne Schuth Date: Mon, 10 Jun 2024 16:58:45 +0200 Subject: [PATCH 1/3] Set title Signed-off-by: Anne Schuth --- tad/site/templates/default_layout.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tad/site/templates/default_layout.jinja b/tad/site/templates/default_layout.jinja index b797cd76..53986dab 100644 --- a/tad/site/templates/default_layout.jinja +++ b/tad/site/templates/default_layout.jinja @@ -16,7 +16,7 @@ - {{ page_title }} + Transparency of Algorithmic Decision making (TAD) From fd8fb05730ffe7d07ab6042193ff9a6095815833 Mon Sep 17 00:00:00 2001 From: Anne Schuth Date: Mon, 10 Jun 2024 17:24:58 +0200 Subject: [PATCH 2/3] fix test Signed-off-by: Anne Schuth --- tests/api/routes/test_root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/api/routes/test_root.py b/tests/api/routes/test_root.py index 5ce1d71e..6ff8b1f8 100644 --- a/tests/api/routes/test_root.py +++ b/tests/api/routes/test_root.py @@ -8,7 +8,7 @@ def test_get_root(client: TestClient) -> None: # todo (robbert) this is a quick test to see if we (most likely) get the expected page assert response.status_code == 200 assert response.headers["content-type"] == "text/html; charset=utf-8" - assert b"This is the page title" in response.content + assert b"Transparency of Algorithmic Decision making (TAD)" in response.content def test_get_favicon(client: TestClient) -> None: From dbf20bf86d4620be808744e23b5f49ab7c44a35f Mon Sep 17 00:00:00 2001 From: Anne Schuth Date: Tue, 11 Jun 2024 09:18:10 +0200 Subject: [PATCH 3/3] Update tad/site/templates/default_layout.jinja Co-authored-by: Berry den Hartog <38954346+berrydenhartog@users.noreply.github.com> Signed-off-by: Anne Schuth --- tad/site/templates/default_layout.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tad/site/templates/default_layout.jinja b/tad/site/templates/default_layout.jinja index 53986dab..be5c3fb0 100644 --- a/tad/site/templates/default_layout.jinja +++ b/tad/site/templates/default_layout.jinja @@ -16,7 +16,7 @@ - Transparency of Algorithmic Decision making (TAD) + {% block title %}Transparency of Algorithmic Decision making (TAD){% endblock %}