From 42725426ec02d359b67cd8d665afe17882d38958 Mon Sep 17 00:00:00 2001 From: ficus Date: Sat, 15 Sep 2012 19:46:49 +0200 Subject: more WIP --- templates/home.html | 96 +++++++++++++++++++++++++++++++++++------------------ 1 file changed, 64 insertions(+), 32 deletions(-) (limited to 'templates/home.html') diff --git a/templates/home.html b/templates/home.html index 30c328e..fa2ed2b 100644 --- a/templates/home.html +++ b/templates/home.html @@ -1,39 +1,71 @@ {% import "lib.html" as lib %} {% extends "base.html" %} {% block body %} -

System

- - - - -
Host Name - {{ status.system.hostname }} -
Current Time - {{ status.system.current_time }} -
System Uptime - {{ status.system.uptime }} -
-

WAN

-{% if not status.wan %} -Upstream ethernet interface hardware not detected at all! -{% else %} -{{ lib.ifstatus(status.wan) }} -{% endif %} - -

LAN

-{% if not status.lan %} -Local network ethernet interface hardware not detected at all! -{% else %} -{{ lib.ifstatus(status.lan) }} -{% endif %} - -

Wireless

-{% if not status.wireless %} -Wireless interface hardware not detected at all! -{% else %} -{{ lib.ifstatus(status.wireless) }} -{% endif %} +
+
+

System

+ + + + +
Host Name + {{ status.system.hostname }} +
Current Time + {{ status.system.current_time }} +
System Uptime + {{ status.system.uptime }} +
+
+
+

Resources

+
    +
  • + CPU Load{{status.resources.cpu_load}} / {{status.resources.cpu_cores}} cores +
    +
    +
    +
  • +
  • RAM Usage{{status.resources.ram_used}} / {{status.resources.ram_avail}} +
    +
    +
    +
  • +
  • Primary Disk Space{{status.resources.disk_used}} / {{status.resources.disk_avail}} +
    +
    +
    +
  • +
+
+
+
+
+

WAN

+ {{ lib.ifstatus(status.wan) }} +
+
+

LAN

+ {{ lib.ifstatus(status.lan) }} +
+
+
+
+

WiFi

+ {{ lib.ifstatus(status.wifi) }} +
+
+

Tor

+ + +
Status + + {{ status.tor.state }} + +
+
+
{% endblock %} -- cgit v1.2.3