aboutsummaryrefslogtreecommitdiff
path: root/templates/index.rs.html
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2022-07-20 07:59:44 -0400
committerCara Salter <cara@devcara.com>2022-07-20 07:59:44 -0400
commitf42bf29ba97fc808433ae4217fd6b00469a12fae (patch)
tree0e04421da46d41f20d19327a0e1280509957a1e7 /templates/index.rs.html
parentc742b752140ab0eee6e353c779bd897042ba6739 (diff)
downloadnccd-f42bf29ba97fc808433ae4217fd6b00469a12fae.tar.gz
nccd-f42bf29ba97fc808433ae4217fd6b00469a12fae.zip
Cookies
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()