From ced83335a5a338cb9c24956b96da526465d94df8 Mon Sep 17 00:00:00 2001 From: ficus Date: Sat, 15 Sep 2012 22:50:14 +0200 Subject: refactor to distributable format --- torouterui/templates/home.html | 71 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 torouterui/templates/home.html (limited to 'torouterui/templates/home.html') diff --git a/torouterui/templates/home.html b/torouterui/templates/home.html new file mode 100644 index 0000000..fa2ed2b --- /dev/null +++ b/torouterui/templates/home.html @@ -0,0 +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 }} +
+
+
+

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