FEAT : ajout compteur de partage
This commit is contained in:
@@ -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()}"
|
||||
|
||||
Reference in New Issue
Block a user