diff options
author | cel 🌸 <cel@blos.sm> | 2023-12-11 06:02:00 +0000 |
---|---|---|
committer | cel 🌸 <cel@blos.sm> | 2023-12-11 06:02:00 +0000 |
commit | 2407c1a4a55d17817b31f7ca5cac9d68b27f536c (patch) | |
tree | fc91c3c3ebde6e5124ff9c1830eac2fcbff68c1f /templates/base.rs.html | |
parent | 85874ab158e1f91fd75aceb70a4c14d36284ec13 (diff) | |
download | pinussy-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.html | 10 |
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> |