From 8d000018e132583bf4797ac9cb4ce2c4e96ed8ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Mon, 27 Oct 2025 14:40:26 +0100 Subject: feat(section): display paginate in full list --- backend/router.go | 2 +- backend/templates/components.html | 14 +++++++++++++- backend/templates/home.html | 2 +- backend/templates/home_log.html | 10 ---------- backend/templates/log.html | 11 ----------- 5 files changed, 15 insertions(+), 24 deletions(-) delete mode 100644 backend/templates/home_log.html delete mode 100644 backend/templates/log.html diff --git a/backend/router.go b/backend/router.go index 59a02e3..fd72711 100644 --- a/backend/router.go +++ b/backend/router.go @@ -17,7 +17,7 @@ import ( ) const ( - Version = "0.3.0" + Version = "0.4.0" configKey = "config" isUpdateKey = "is_update" assetsFSKey = "assets_fs" diff --git a/backend/templates/components.html b/backend/templates/components.html index 8f1bcc2..72bf40e 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -1,4 +1,4 @@ -{{define "logs_display"}} +{{define "section_display"}}
{{ $uri := .URI }} {{ range .Data }}
@@ -11,7 +11,19 @@
{{ end }}
{{end}} diff --git a/backend/templates/home.html b/backend/templates/home.html index 3ff9ce3..d5dbb28 100644 --- a/backend/templates/home.html +++ b/backend/templates/home.html @@ -8,7 +8,7 @@

{{ .Name }}

{{ .Description }}

- {{ template "logs_display" . }} + {{ template "section_display" . }}
{{ end }} diff --git a/backend/templates/home_log.html b/backend/templates/home_log.html deleted file mode 100644 index 28bf36a..0000000 --- a/backend/templates/home_log.html +++ /dev/null @@ -1,10 +0,0 @@ -{{define "body"}} -
- {{ range .Sections }} -
-

{{ .Name }}

-

{{ .Description }}

-
- {{ template "logs_display" . }} {{ end }} -
-{{end}} diff --git a/backend/templates/log.html b/backend/templates/log.html deleted file mode 100644 index a384459..0000000 --- a/backend/templates/log.html +++ /dev/null @@ -1,11 +0,0 @@ -{{define "body"}} -
-

{{ .DataTitle }}

-

{{ .Description }}

-
- {{ .Img.Alt }} -
{{ .Img.Legend }}
-
- {{ .Content }} -
-{{end}} -- cgit v1.2.3