aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-23 22:17:11 +0100
committerficus <ficus@robocracy.org>2012-11-23 22:17:11 +0100
commit7bca5bd6c727fb006f0b066f9c0760c91eae921c (patch)
tree7595f31bc0e91444b6f0d1cd9f84f952ec253e8a
parentdab36ce2c66e4c11798af024295fd18da3162a4f (diff)
downloadtui-7bca5bd6c727fb006f0b066f9c0760c91eae921c.tar.gz
tui-7bca5bd6c727fb006f0b066f9c0760c91eae921c.zip
wifi enabled is green
-rw-r--r--TODO1
-rw-r--r--torouterui/templates/lib.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/TODO b/TODO
index be5a55c..706ad04 100644
--- a/TODO
+++ b/TODO
@@ -2,7 +2,6 @@
# Soon
- /logs/ is often a 500 server error
-- for wifi section, ENABLED should be green
- use 'platform' python module where appropriate
- switch from os.popen to subprocess
- ifup/down doesn't set link status?
diff --git a/torouterui/templates/lib.html b/torouterui/templates/lib.html
index 03a671f..801eb12 100644
--- a/torouterui/templates/lib.html
+++ b/torouterui/templates/lib.html
@@ -13,7 +13,7 @@ Network hardware not detected at all!
<tr>
<th>Status
<td><span style="font-weight: bold;" class="label
- {% if ifstatus.state == 'RUNNING' %}label-success{% elif ifstatus.state == 'up' %}label-info{% else %}label-important{% endif %}">
+ {% if ifstatus.state in ['RUNNING','ENABLED'] %}label-success{% elif ifstatus.state == 'up' %}label-info{% else %}label-important{% endif %}">
{{ ifstatus.state }}
</span>
<tr>