summaryrefslogtreecommitdiffstats
path: root/templates/base.rs.html
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-12-11 06:02:00 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2023-12-11 06:02:00 +0000
commit2407c1a4a55d17817b31f7ca5cac9d68b27f536c (patch)
treefc91c3c3ebde6e5124ff9c1830eac2fcbff68c1f /templates/base.rs.html
parent85874ab158e1f91fd75aceb70a4c14d36284ec13 (diff)
downloadpinussy-2407c1a4a55d17817b31f7ca5cac9d68b27f536c.tar.gz
pinussy-2407c1a4a55d17817b31f7ca5cac9d68b27f536c.tar.bz2
pinussy-2407c1a4a55d17817b31f7ca5cac9d68b27f536c.zip
implement signup
Diffstat (limited to 'templates/base.rs.html')
-rw-r--r--templates/base.rs.html10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/base.rs.html b/templates/base.rs.html
index 5b1a324..64a8d4e 100644
--- a/templates/base.rs.html
+++ b/templates/base.rs.html
@@ -1,6 +1,7 @@
@use super::statics::*;
+@use crate::Notification;
-@(authenticated: bool, body: Content)
+@(authenticated: bool, notification: Option<Notification>, body: Content)
<!DOCTYPE html>
<html>
@@ -15,11 +16,16 @@
<body>
<nav>
@if authenticated {
- logout
+ <form action="/logout" method="post">
+ <button type="submit">logout</button>
+ </form>
} else {
<a href="/login">log in</a>
}
</nav>
+ @if let Some(notification) = notification {
+ <div class="notification @notification.kind">@notification.message</div>
+ }
@:body()
</body>