diff options
author | Julien Dessaux | 2022-10-31 22:40:42 +0100 |
---|---|---|
committer | Julien Dessaux | 2022-10-31 22:40:42 +0100 |
commit | b91bb0a133aa3d0400beb359fed4e641c888ab26 (patch) | |
tree | 0b703fab300ab39ffd39708b193bcfa09e89f6f5 /views | |
parent | Fixed middleware action without return (diff) | |
download | jeux-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.ejs | 3 |
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> |