summaryrefslogtreecommitdiffstats
path: root/templates/base.rs.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/base.rs.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/base.rs.html b/templates/base.rs.html
index 64a8d4e..0bf70eb 100644
--- a/templates/base.rs.html
+++ b/templates/base.rs.html
@@ -1,7 +1,7 @@
@use super::statics::*;
@use crate::Notification;
-@(authenticated: bool, notification: Option<Notification>, body: Content)
+@(user: Option<String>, notification: Option<Notification>, body: Content)
<!DOCTYPE html>
<html>
@@ -15,9 +15,9 @@
<body>
<nav>
- @if authenticated {
+ @if let Some(username) = user {
<form action="/logout" method="post">
- <button type="submit">logout</button>
+ <button type="submit">logout @username</button>
</form>
} else {
<a href="/login">log in</a>
@@ -29,4 +29,4 @@
@:body()
</body>
-</html> \ No newline at end of file
+</html>