FEAT : ajout compteur de partage

This commit is contained in:
2025-12-03 09:28:16 +01:00
parent b144a44a0a
commit 66045aaf14
10 changed files with 48 additions and 26 deletions

View File

@@ -41,11 +41,17 @@
</div>
<h2>Mes photos partagées</h2>
<div>
<a th:each="p : ${mesPhotosPartagees.content}"
th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
</a>
<div style="display:flex; gap:20px; flex-wrap:wrap;">
<div th:each="p : ${mesPhotosPartagees.content}">
<a th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"
style="display:block; border:1px solid #ccc;"/>
</a>
<!--compteur de partages -->
<div style="font-size:0.9em; color:#555; margin-top:4px;">
<span th:text="${shareCounts[p.id]} + ' partage(s)'"></span>
</div>
</div>
</div>
<div>
<a th:if="${mesPhotosPartagees.hasPrevious()}"