From ef3f8de38795a92dfc5d232a533c37d53794f1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 13:44:41 +0100 Subject: fix(section): cannot execute home_logs --- backend/templates/components.html | 9 +++++---- backend/templates/home.html | 6 ++++-- backend/templates/home_log.html | 9 ++++++++- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/backend/templates/components.html b/backend/templates/components.html index 9792784..8f1bcc2 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -1,9 +1,8 @@ {{define "logs_display"}}
- {{ $uri := .URI }} - {{ range .Data }} + {{ $uri := .URI }} {{ range .Data }} {{ end }} - Voir plus +
{{end}} diff --git a/backend/templates/home.html b/backend/templates/home.html index ce4f4e8..3ff9ce3 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -1,12 +1,14 @@ {{define "body"}}
-

logs

+

{{ .Name }}

{{ .PageDescription }}

{{ range .Sections }}
- {{ template "logs_display" . }} +

{{ .Name }}

+

{{ .Description }}

+ {{ template "logs_display" . }}
{{ end }}
diff --git a/backend/templates/home_log.html b/backend/templates/home_log.html index 485661c..28bf36a 100644 --- a/backend/templates/home_log.html +++ b/backend/templates/home_log.html @@ -1,3 +1,10 @@ {{define "body"}} -
{{ template "logs_display" . }}
+
+ {{ range .Sections }} +
+

{{ .Name }}

+

{{ .Description }}

+
+ {{ template "logs_display" . }} {{ end }} +
{{end}} -- cgit v1.2.3