aboutsummaryrefslogtreecommitdiff
path: root/backend/templates/components.html
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 19:22:14 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 19:22:14 +0200
commit9cfcbabb032c729b06d581412a64a9e7cefed6b1 (patch)
treee5ff64ed658ef1af98d53191a252c0d0c7e1c7f5 /backend/templates/components.html
parent412a77b7c1ba1819f4bf1c0697ddd19d7af21e19 (diff)
style(format): install prettier and run
Diffstat (limited to 'backend/templates/components.html')
-rw-r--r--backend/templates/components.html41
1 files changed, 22 insertions, 19 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html
index 2b43579..da133a6 100644
--- a/backend/templates/components.html
+++ b/backend/templates/components.html
@@ -1,23 +1,26 @@
{{define "logs_display"}}
<article>
- {{ range .Logs }}
- <article>
- <h2><a href="/logs/{{ .Slug }}">{{ .LogTitle }}</a></h2>
- <figure>
- <a href="/logs/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}"></a>
- <figcaption>{{ .Img.Legend }}</figcaption>
- </figure>
- <p>{{ .Description }}</p>
- </article>
- {{ end }}
- {{ if ne .PagesNumber 1 }}
- <div class="pagination">
- <nav>
- {{ 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}}
- </nav>
- </div>
- {{ end }}
+ {{ range .Logs }}
+ <article>
+ <h2><a href="/logs/{{ .Slug }}">{{ .LogTitle }}</a></h2>
+ <figure>
+ <a href="/logs/{{ .Slug }}"><img src="{{ static .Img.Src }}" alt="{{ .Img.Alt }}" /></a>
+ <figcaption>{{ .Img.Legend }}</figcaption>
+ </figure>
+ <p>{{ .Description }}</p>
+ </article>
+ {{ end }} {{ if ne .PagesNumber 1 }}
+ <div class="pagination">
+ <nav>
+ {{ 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}}
+ </nav>
+ </div>
+ {{ end }}
</article>
{{end}}