aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/logs_display.html
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 18:40:45 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 18:40:45 +0200
commit0de89e6bc6a467b2cc4261ae65464f40119cc0ff (patch)
tree47ca3e894444950152b3ba0cf587f713d5aa7eaa /backend/templates/logs_display.html
parent270f592fc65cd5553ccf7c0dc81431c3efdf67ab (diff)
feat(frontend): use htmx to dynamically navigate between pages
Diffstat (limited to 'backend/templates/logs_display.html')
-rw-r--r--backend/templates/logs_display.html25
1 files changed, 0 insertions, 25 deletions
diff --git a/backend/templates/logs_display.html b/backend/templates/logs_display.html
deleted file mode 100644
index adafacf..0000000
--- a/backend/templates/logs_display.html
+++ /dev/null
@@ -1,25 +0,0 @@
-{{define "logs_display"}}
-<article>
- {{ range .Logs }}
- <article>
- <h2><a href="/log/{{ .Slug }}">{{ .LogTitle }}</a></h2>
- <figure>
- <a href="/log/{{ .Slug }}"><img src="{{ .Img.Src }}" alt="{{ .Img.Alt }}"></a>
- <figcaption>{{ .Img.Legend }}</figcaption>
- </figure>
- <p>
- {{ .Description }}
- </p>
- </article>
- {{ end }}
- {{ if ne .PagesNumber 1 }}
- <div class="pagination">
- <div>
- {{ if ne .CurrentPage 1 }}<a href="?page={{ before .CurrentPage }}">Précédent</a>{{else}}<p></p>{{end}}
- <p>{{ .CurrentPage }}/{{ .PagesNumber }}</p>
- {{ if ne .CurrentPage .PagesNumber }}<a href="?page={{ next .CurrentPage }}">Suivant</a>{{else}}<p></p>{{end}}
- </div>
- </div>
- {{ end }}
-</article>
-{{end}}