summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJulien Dessaux2022-10-31 22:40:42 +0100
committerJulien Dessaux2022-10-31 22:40:42 +0100
commitb91bb0a133aa3d0400beb359fed4e641c888ab26 (patch)
tree0b703fab300ab39ffd39708b193bcfa09e89f6f5 /views
parentFixed middleware action without return (diff)
downloadjeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.tar.gz
jeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.tar.bz2
jeux-de-mots-b91bb0a133aa3d0400beb359fed4e641c888ab26.zip
Added logout route, and a way to display the logout menu item on relevant pages
Diffstat (limited to 'views')
-rw-r--r--views/nav.ejs3
1 files changed, 3 insertions, 0 deletions
diff --git a/views/nav.ejs b/views/nav.ejs
index b494b55..8298004 100644
--- a/views/nav.ejs
+++ b/views/nav.ejs
@@ -2,6 +2,9 @@
<nav>
<ul>
<li class="nav-menu-title">Jeu de mots</li>
+ <% if (user !== undefined) { %>
+ <li class=".nav-menu-margin-left"><a href="/logout">Déconnexion</a></li>
+ <% } %>
</ul>
</nav>
</header>