diff options
author | Cara Salter <cara@devcara.com> | 2022-07-20 07:59:44 -0400 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2022-07-20 07:59:44 -0400 |
commit | f42bf29ba97fc808433ae4217fd6b00469a12fae (patch) | |
tree | 0e04421da46d41f20d19327a0e1280509957a1e7 /templates | |
parent | c742b752140ab0eee6e353c779bd897042ba6739 (diff) | |
download | nccd-f42bf29ba97fc808433ae4217fd6b00469a12fae.tar.gz nccd-f42bf29ba97fc808433ae4217fd6b00469a12fae.zip |
Cookies
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.rs.html | 8 |
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() |