From 5dc4774ed3380762b4d7aadc86193af6073c456a Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Mon, 11 Dec 2023 13:57:51 +0000 Subject: implement log-out --- templates/home.rs.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 templates/home.rs.html (limited to 'templates/home.rs.html') 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) + +@:base_html(user.clone(), None, { + @if let Some(username) = user { +

logged in as @username

+ } +}) -- cgit