aboutsummaryrefslogtreecommitdiffstats
path: root/templates/home.html
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-09-15 22:50:14 +0200
committerficus <ficus@robocracy.org>2012-09-15 22:50:14 +0200
commitced83335a5a338cb9c24956b96da526465d94df8 (patch)
treeb345cd21dfcbb9e660aceb2433c92bd50848938f /templates/home.html
parent57a1e70dee45f5cd9493d6d23f8fc7b6435d5388 (diff)
downloadtui-ced83335a5a338cb9c24956b96da526465d94df8.tar.gz
tui-ced83335a5a338cb9c24956b96da526465d94df8.zip
refactor to distributable format
Diffstat (limited to 'templates/home.html')
-rw-r--r--templates/home.html71
1 files changed, 0 insertions, 71 deletions
diff --git a/templates/home.html b/templates/home.html
deleted file mode 100644
index fa2ed2b..0000000
--- a/templates/home.html
+++ /dev/null
@@ -1,71 +0,0 @@
-{% import "lib.html" as lib %}
-{% extends "base.html" %}
-{% block body %}
-
-
-<div class="row-fluid">
- <div class="span6">
- <h3>System</h3>
- <table class="table table-condensed">
- <tr>
- <th>Host Name
- <td><span style="font-family:monospace;">{{ status.system.hostname }}</span>
- <tr>
- <th>Current Time
- <td><span style="font-family:monospace;">{{ status.system.current_time }}</span>
- <tr>
- <th>System Uptime
- <td><span style="font-family:monospace;">{{ status.system.uptime }}</span>
- </table>
- </div>
- <div class="span6">
- <h3>Resources</h3>
- <ul class="unstyled">
- <li>
- CPU Load<span class="pull-right strong">{{status.resources.cpu_load}} / {{status.resources.cpu_cores}} cores</span>
- <div class="progress progress-striped ">
- <div class="bar" style="width: {{status.resources.cpu_percent}}%;"></div>
- </div>
- </li>
- <li>RAM Usage<span class="pull-right strong">{{status.resources.ram_used}} / {{status.resources.ram_avail}}</span>
- <div class="progress progress-success progress-striped ">
- <div class="bar" style="width: {{ status.resources.ram_percent }}%;"></div>
- </div>
- </li>
- <li>Primary Disk Space<span class="pull-right strong">{{status.resources.disk_used}} / {{status.resources.disk_avail}}</span>
- <div class="progress progress-warning progress-striped ">
- <div class="bar" style="width: {{ status.resources.disk_percent }}%;"></div>
- </div>
- </li>
- </ul>
- </div>
-</div>
-<div class="row-fluid">
- <div class="span6">
- <h3>WAN</h3>
- {{ lib.ifstatus(status.wan) }}
- </div>
- <div class="span6">
- <h3>LAN</h3>
- {{ lib.ifstatus(status.lan) }}
- </div>
-</div>
-<div class="row-fluid">
- <div class="span6">
- <h3>WiFi</h3>
- {{ lib.ifstatus(status.wifi) }}
- </div>
- <div class="span6">
- <h3>Tor</h3>
- <table class="table table-condensed {% if status.tor.state in ["DISABLED"] %}muted{% endif %}">
- <tr>
- <th>Status
- <td><span style="font-weight: bold;" class="label
- {% if status.tor.state == 'RUNNING' %}label-success{% elif status.tor.state == 'STARTING' %}label-info{% else %}label-important{% endif %}">
- {{ status.tor.state }}
- </span>
- </table>
- </div>
-</div>
-
-{% endblock %}