diff options
| author | mo khan <mo@mokhan.ca> | 2025-04-21 22:46:50 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-04-21 22:46:50 -0600 |
| commit | 699ef9cc2a910774d1f210ef0562496d08f04e03 (patch) | |
| tree | 620bf127c8059b877590e385676733e66b083c3e /app/views | |
| parent | 04120f5bfe0934f82745ea6783f0c785bbcd1050 (diff) | |
feat: render a logout button
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/dashboard/show.html.tmpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/dashboard/show.html.tmpl b/app/views/dashboard/show.html.tmpl index 5293117..acb0b3f 100644 --- a/app/views/dashboard/show.html.tmpl +++ b/app/views/dashboard/show.html.tmpl @@ -14,7 +14,11 @@ <li><strong>SparkleLab</strong></li> </ul> <ul> - <li><a href="/session/new">Login</a></li> + <li> + <form action="/session/destroy" method="post"> + <input type="submit" value="Logout"> + </form> + </li> </ul> </nav> {{range .Sparkles}} |
