aboutsummaryrefslogtreecommitdiffstats
path: root/templates/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/home.html')
-rw-r--r--templates/home.html39
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 %}