From 9de84e3fbae0f2893e9c4f1425afa06899959bf7 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 24 Aug 2022 13:15:31 -0400 Subject: flaskify --- templates/index.rs.html | 71 ------------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100644 templates/index.rs.html (limited to 'templates/index.rs.html') diff --git a/templates/index.rs.html b/templates/index.rs.html deleted file mode 100644 index e686b01..0000000 --- a/templates/index.rs.html +++ /dev/null @@ -1,71 +0,0 @@ -@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

- - - - - - - - - - - - - - - - - - - - - -
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

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