summaryrefslogtreecommitdiffstats
path: root/templates/home.rs.html
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@blos.sm>2023-12-11 13:57:51 +0000
committerLibravatar cel 🌸 <cel@blos.sm>2023-12-11 13:57:51 +0000
commit5dc4774ed3380762b4d7aadc86193af6073c456a (patch)
treecc8af98d94a0566ec19e4ca2f3cfd3800a7c5423 /templates/home.rs.html
parent159b239aa2964f6c07438638b967746354376b2e (diff)
downloadpinussy-5dc4774ed3380762b4d7aadc86193af6073c456a.tar.gz
pinussy-5dc4774ed3380762b4d7aadc86193af6073c456a.tar.bz2
pinussy-5dc4774ed3380762b4d7aadc86193af6073c456a.zip
implement log-out
Diffstat (limited to 'templates/home.rs.html')
-rw-r--r--templates/home.rs.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/home.rs.html b/templates/home.rs.html
new file mode 100644
index 0000000..882b2ed
--- /dev/null
+++ b/templates/home.rs.html
@@ -0,0 +1,10 @@
+@use super::base_html;
+@use crate::User;
+
+@(user: Option<String>)
+
+@:base_html(user.clone(), None, {
+ @if let Some(username) = user {
+ <h1>logged in as @username</h1>
+ }
+})