aboutsummaryrefslogtreecommitdiff
path: root/backend/templates
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-11-13 15:31:41 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-11-13 15:31:41 +0100
commitd18485f51156350c02b9b789fe44e14953b51f9b (patch)
treecc0074a86a547801bec61530a1ac0d114d8b99dd /backend/templates
parenta221da8d306d805a60dde6c231d49ac8019fa8dc (diff)
feat(template): remove 'voir plus' if no more items
Diffstat (limited to 'backend/templates')
-rw-r--r--backend/templates/components.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/templates/components.html b/backend/templates/components.html
index 5365445..b4ffbe6 100644
--- a/backend/templates/components.html
+++ b/backend/templates/components.html
@@ -21,9 +21,9 @@
<p></p>
{{end}}
</nav>
- {{ else }}
+ {{ else }} {{ if eq (len .Data) .LenMax }}
<a href="/{{ $uri }}/">Voir plus</a>
- {{ end }}
+ {{ end }} {{ end }}
</div>
</article>
{{end}}