From f42bf29ba97fc808433ae4217fd6b00469a12fae Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 20 Jul 2022 07:59:44 -0400 Subject: Cookies --- templates/index.rs.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates/index.rs.html') 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) @:header_html()

NCCd (Network Communications Control Daemon)

+ @if user.is_some() { +

Welcome @user.unwrap().pref_name

+ } else { +

Please Log in

+ } @:footer_html() -- cgit v1.2.3