fix(web): add Log out to the persistent nav header
Logout was only reachable from /welcome. Users who are logged in had no way to sign out from any app page (list, detail, account). Added to the shared nav alongside Account.
This commit is contained in:
@@ -22,7 +22,7 @@ templ Layout(title string) {
|
||||
<body>
|
||||
<header>
|
||||
<a href="/" class="brand">Tapir</a>
|
||||
<nav class="nav"><a href="/account">Account</a></nav>
|
||||
<nav class="nav"><a href="/account">Account</a><a href="/auth/logout">Log out</a></nav>
|
||||
</header>
|
||||
<main>
|
||||
{ children... }
|
||||
|
||||
Reference in New Issue
Block a user