FEAT : Ajout du mécanisme d'album avec partage et visibilité

This commit is contained in:
2025-12-03 12:46:02 +01:00
parent 66045aaf14
commit ff088361a0
43 changed files with 1080 additions and 56 deletions

View File

@@ -10,7 +10,7 @@
<p><a th:href="@{/}">Retour accueil</a></p>
<h2>Mes photos privées</h2>
<div>
<a th:each="p : ${photosPrivees.content}"
<a th:each="p : ${photosPrivees.content}" th:if="${p != null}"
th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
</a>
@@ -26,7 +26,7 @@
<h2>Mes photos publiques</h2>
<div>
<a th:each="p : ${photosPubliques.content}"
<a th:each="p : ${photosPubliques.content}" th:if="${p != null}"
th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
</a>
@@ -42,8 +42,8 @@
<h2>Mes photos partagées</h2>
<div style="display:flex; gap:20px; flex-wrap:wrap;">
<div th:each="p : ${mesPhotosPartagees.content}">
<a th:href="@{'/photo/' + ${p.id}}">
<div th:each="p : ${mesPhotosPartagees.content}" th:if="${p != null}">
<a th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"
style="display:block; border:1px solid #ccc;"/>
</a>
@@ -76,6 +76,7 @@
<h2>Photos partagées avec moi</h2>
<div>
<a th:each="p : ${photosPartagees.content}"
th:if="${p != null}"
th:href="@{'/photo/' + ${p.id}}">
<img th:src="@{'/photo/' + ${p.id} + '/raw'}" width="120"/>
</a>