debug logout + affichage du prénom dans la page de l'application
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,18 @@
|
||||
<!doctype html>
|
||||
<html xmlns:th="http://www.thymeleaf.org">
|
||||
<head><meta charset="utf-8"/><title>Accueil</title></head>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Accueil</title></head>
|
||||
<body>
|
||||
<h1>Bienvenue sur FotoSharing</h1>
|
||||
<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="@{/logout}">Se déconnecter</a></p>
|
||||
<p>
|
||||
<form th:action="@{/logout}" method="post" style="display: inline;">
|
||||
<button type="submit"
|
||||
style="background: none; border: none; color: blue; text-decoration: underline; cursor: pointer;">
|
||||
Se déconnecter
|
||||
</button>
|
||||
</form>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user