From fe4b8a01fc87d1a76fca8e8733270a260aa23cc0 Mon Sep 17 00:00:00 2001 From: ficus Date: Tue, 25 Sep 2012 11:46:08 +0200 Subject: basic tor status using python-torctl --- torouterui/templates/home.html | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'torouterui/templates/home.html') diff --git a/torouterui/templates/home.html b/torouterui/templates/home.html index fa2ed2b..58ed2f2 100644 --- a/torouterui/templates/home.html +++ b/torouterui/templates/home.html @@ -57,13 +57,25 @@

Tor

- +
+ + + +
Status + {% if status.tor.state == 'ESTABLISHED' %}label-success{% elif status.tor.state == 'CONNECTING' %}label-info{% else %}label-important{% endif %}"> {{ status.tor.state }} +
Circuit Established? + {{ status.tor.circuit_established }} +
Version + {% if status.tor.version %}{{ status.tor.version }} ({{ status.tor.version_current }}){% endif %} +
Traffic TX + {% if status.tor.traffic_written_bytes %}{{ status.tor.traffic_written_bytes }} bytes{% endif %} +
Traffic RX + {% if status.tor.traffic_read_bytes %}{{ status.tor.traffic_read_bytes }} bytes{% endif %}
-- cgit v1.2.3