diff options
author | ficus <ficus@robocracy.org> | 2012-09-14 20:10:43 +0200 |
---|---|---|
committer | ficus <ficus@robocracy.org> | 2012-09-14 20:10:43 +0200 |
commit | a304d7a56563b16ca98d9b45ebed521c52f6347c (patch) | |
tree | da88f01977c08d9a149c3e767f1a7e62981500b9 /templates/home.html | |
download | tui-a304d7a56563b16ca98d9b45ebed521c52f6347c.tar.gz tui-a304d7a56563b16ca98d9b45ebed521c52f6347c.zip |
backup WIP
Diffstat (limited to 'templates/home.html')
-rw-r--r-- | templates/home.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..30c328e --- /dev/null +++ b/templates/home.html @@ -0,0 +1,39 @@ +{% import "lib.html" as lib %} +{% extends "base.html" %} +{% block body %} +<h3>System</h3> + +<table class="table table-condensed"> + <tr> + <th>Host Name + <td><code>{{ status.system.hostname }}</code> + <tr> + <th>Current Time + <td><code>{{ status.system.current_time }}</code> + <tr> + <th>System Uptime + <td><code>{{ status.system.uptime }}</code> +</table> + +<h3>WAN</h3> +{% if not status.wan %} +Upstream ethernet interface hardware not detected at all! +{% else %} +{{ lib.ifstatus(status.wan) }} +{% endif %} + +<h3>LAN</h3> +{% if not status.lan %} +Local network ethernet interface hardware not detected at all! +{% else %} +{{ lib.ifstatus(status.lan) }} +{% endif %} + +<h3>Wireless</h3> +{% if not status.wireless %} +Wireless interface hardware not detected at all! +{% else %} +{{ lib.ifstatus(status.wireless) }} +{% endif %} + +{% endblock %} |