aboutsummaryrefslogtreecommitdiff
path: root/templates/index.rs.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.rs.html')
-rw-r--r--templates/index.rs.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/index.rs.html b/templates/index.rs.html
index 4fb701c..d0196df 100644
--- a/templates/index.rs.html
+++ b/templates/index.rs.html
@@ -1,8 +1,14 @@
@use super::{header_html, footer_html};
+@use crate::models::DbUser;
-@()
+@(user: Option<DbUser>)
@:header_html()
<h1>NCCd (Network Communications Control Daemon)</h1>
+ @if user.is_some() {
+ <h3>Welcome @user.unwrap().pref_name</h3>
+ } else {
+
<h3>Please <a href="/dash/auth/login">Log in</a></h3>
+ }
@:footer_html()