Ajout galerie publique pour tous les users / anonymes

This commit is contained in:
2025-12-01 21:18:47 +01:00
parent e2c714185b
commit ca3e693969
22 changed files with 60 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
<!doctype html>
<html xmlns:th="http://www.thymeleaf.org">
<head><meta charset="utf-8"><title>Galerie</title></head>
<body>
<h1>Galerie publique</h1>
<p><a th:href="@{/}">Accueil</a></p>
<ul>
<li th:each="p : ${photos}">
<span th:text="${p.nomFichierOriginal}">nom</span>
<a th:href="@{'/photo/' + ${p.id} + '/raw'}" target="_blank">Voir</a>
</li>
</ul>
</body>
</html>

View File

@@ -7,6 +7,7 @@
<h1>Bienvenue sur FotoSharing<span th:if="${prenom}" th:text="' : ' + ${prenom}"></span></h1>
<p><a th:href="@{/upload}">Uploader une photo</a></p>
<p><a th:href="@{/mes-photos}">Voir mes photos</a></p>
<p><a th:href="@{/galerie}">Voir la galerie publique</a></p>
<p>
<form th:action="@{/logout}" method="post" style="display: inline;">
<button type="submit"

View File

@@ -19,5 +19,6 @@
Erreur d'authentification.
</div>
<p><a th:href="@{/register}">Créer un compte</a></p>
<p><a th:href="@{/galerie}">Galerie publique</a></p>
</body>
</html>

View File

@@ -22,5 +22,7 @@
</li>
</ul>
<p><a th:href="@{/galerie}">Galerie publique</a></p>
</body>
</html>

View File

@@ -13,5 +13,6 @@
<label>Mot de passe: <input th:field="*{motDePasse}" type="password"/></label><br/>
<button type="submit">Créer</button>
</form>
<p><a th:href="@{/galerie}">Galerie publique</a></p>
</body>
</html>

View File

@@ -17,6 +17,7 @@
</label><br/>
<button type="submit">Envoyer</button>
</form>
<p><a th:href="@{/galerie}">Galerie publique</a></p>
<div th:if="${error}" th:text="${error}"></div>
<div th:if="${message}" th:text="${message}"></div>
</body>