summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-04-21 22:46:50 -0600
committermo khan <mo@mokhan.ca>2025-04-21 22:46:50 -0600
commit699ef9cc2a910774d1f210ef0562496d08f04e03 (patch)
tree620bf127c8059b877590e385676733e66b083c3e
parent04120f5bfe0934f82745ea6783f0c785bbcd1050 (diff)
feat: render a logout button
-rw-r--r--app/views/dashboard/show.html.tmpl6
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}}