refactor pour intégrer l'architecture 3-tiers
This commit is contained in:
@@ -8,9 +8,6 @@
|
||||
<h2>Mes photos</h2>
|
||||
<p><a th:href="@{/upload}">Uploader une photo</a></p>
|
||||
<p><a th:href="@{/}">Retour accueil</a></p>
|
||||
<div th:if="${#lists.isEmpty(mesPhotos)}">
|
||||
<p>Vous n'avez pas encore de photos.</p>
|
||||
</div>
|
||||
<h2>Mes photos privées</h2>
|
||||
<div>
|
||||
<a th:each="p : ${photosPrivees.content}"
|
||||
@@ -52,10 +49,21 @@
|
||||
</div>
|
||||
<div>
|
||||
<a th:if="${mesPhotosPartagees.hasPrevious()}"
|
||||
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees - 1})}">⬅</a>
|
||||
th:href="@{/mes-photos(
|
||||
pagePrivees=${pagePrivees},
|
||||
pagePubliques=${pagePubliques},
|
||||
pagePartagees=${pagePartagees},
|
||||
pageMesPartagees=${pageMesPartagees - 1}
|
||||
)}">⬅</a>
|
||||
<span th:text="'Page ' + (${pageMesPartagees}+1)"></span>
|
||||
<a th:if="${mesPhotosPartagees.hasNext()}"
|
||||
th:href="@{/mes-photos(pageMesPartagees=${pageMesPartagees + 1})}">➡</a>
|
||||
th:href="@{/mes-photos(
|
||||
pagePrivees=${pagePrivees},
|
||||
pagePubliques=${pagePubliques},
|
||||
pagePartagees=${pagePartagees},
|
||||
pageMesPartagees=${pageMesPartagees + 1}
|
||||
)}">➡</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user