From 7bca5bd6c727fb006f0b066f9c0760c91eae921c Mon Sep 17 00:00:00 2001 From: ficus Date: Fri, 23 Nov 2012 22:17:11 +0100 Subject: wifi enabled is green --- TODO | 1 - torouterui/templates/lib.html | 2 +- 2 files changed, 1 insertion(+), 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! Status + {% if ifstatus.state in ['RUNNING','ENABLED'] %}label-success{% elif ifstatus.state == 'up' %}label-info{% else %}label-important{% endif %}"> {{ ifstatus.state }} -- cgit v1.2.3