From 4b616447715b8129ae322341959e1c2bfabbd10e Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 20 Jul 2022 10:31:01 -0400 Subject: emails also subnet storage --- templates/index.rs.html | 63 ++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 3 deletions(-) (limited to 'templates/index.rs.html') diff --git a/templates/index.rs.html b/templates/index.rs.html index d0196df..e686b01 100644 --- a/templates/index.rs.html +++ b/templates/index.rs.html @@ -1,12 +1,69 @@ @use super::{header_html, footer_html}; -@use crate::models::DbUser; +@use crate::models::{DbUser, Peer, Network}; -@(user: Option) +@(user: Option, peers: Vec, nets: Vec) @:header_html()

NCCd (Network Communications Control Daemon)

@if user.is_some() { -

Welcome @user.unwrap().pref_name

+

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

+ + + + + + + + + + + + + + + + + + + + + +
KeyValue
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 { + + + + + + } +
IDAddressPublic Key
@p.id@p.addr@p.public_key
+
+

Configured subnets (New)

+ + + + + + + @for n in nets { + + + + + + } +
IDSubnet CIDRDescription
@n.id@n.subnet@if n.description.is_some() { @n.description.unwrap() + } else { None }
} else {

Please Log in

-- cgit v1.2.3