AJOUT : champs Mes Photos partagées dans la page mes-photos

This commit is contained in:
2025-12-02 20:00:44 +01:00
parent ce5ed0cbe3
commit f0e20be396
10 changed files with 51 additions and 1 deletions

View File

@@ -43,6 +43,22 @@
</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>
<div>
<a th:if="${mesPhotosPartagees.hasPrevious()}"
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees - 1})}"></a>
<span th:text="'Page ' + (${pageMesPartagees}+1)"></span>
<a th:if="${mesPhotosPartagees.hasNext()}"
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees + 1})}"></a>
</div>
<h2>Photos partagées avec moi</h2>
<div>
<a th:each="p : ${photosPartagees.content}"