FEAT : upload en local /opt/photo-app/uploads + visualisation photo
This commit is contained in:
26
target/classes/templates/mes-photos.html
Normal file
26
target/classes/templates/mes-photos.html
Normal file
@@ -0,0 +1,26 @@
|
||||
<!doctype html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Mes photos</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Mes photos</h1>
|
||||
|
||||
<p><a th:href="@{/upload}">Uploader une photo</a></p>
|
||||
<p><a th:href="@{/}">Retour accueil</a></p>
|
||||
|
||||
<div th:if="${#lists.isEmpty(photos)}">
|
||||
<p>Vous n'avez pas encore de photos.</p>
|
||||
</div>
|
||||
|
||||
<ul th:if="${!#lists.isEmpty(photos)}">
|
||||
<li th:each="p : ${photos}">
|
||||
<span th:text="${p.nomFichierOriginal}">Nom du fichier</span>
|
||||
—
|
||||
<a th:href="@{'/photo/' + ${p.id} + '/raw'}" target="_blank">Voir</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user