@use super::{header_html, footer_html}; @use crate::models::{DbUser, Peer, Network}; @(user: Option, peers: Vec, nets: Vec) @:header_html()

NCCd (Network Communications Control Daemon)

@if user.is_some() {

Welcome @user.clone().unwrap().pref_name

Key Value
ID @user.clone().unwrap().id
Email @user.clone().unwrap().email
Preferred Name @user.clone().unwrap().pref_name
Last Login @(user.clone().unwrap().last_login)Z

Configured Peers

@for p in peers { }
ID Address Public Key
@p.id @p.addr @p.public_key

Configured subnets (New)

@for n in nets { }
ID Subnet CIDR Description
@n.id @n.subnet @if n.description.is_some() { @n.description.unwrap() } else { None }
} else {

Please Log in

} @:footer_html()