From 87025b351d184f61aec35a07c8ed42986d3595cc Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Fri, 8 Jul 2016 16:30:36 -0300 Subject: Fix indent and spaces --- .../local/www/widgets/widgets/openvpn.widget.php | 63 ++++++++++++++-------- 1 file changed, 40 insertions(+), 23 deletions(-) (limited to 'src/usr/local/www') diff --git a/src/usr/local/www/widgets/widgets/openvpn.widget.php b/src/usr/local/www/widgets/widgets/openvpn.widget.php index 943cbca..e19cad5 100644 --- a/src/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/src/usr/local/www/widgets/widgets/openvpn.widget.php @@ -118,11 +118,12 @@ $clients = openvpn_get_active_clients(); - + $evenRowClass = $rowIndex % 2 ? " listMReven" : " listMRodd"; + $rowIndex++; +?> " class=""> @@ -131,7 +132,9 @@ $clients = openvpn_get_active_clients(); - " title=> @@ -146,14 +149,19 @@ $clients = openvpn_get_active_clients(); - + - - +

@@ -166,7 +174,9 @@ $clients = openvpn_get_active_clients(); - + '> @@ -176,13 +186,13 @@ $clients = openvpn_get_active_clients(); '; - } else { - /* tunnel is down */ - echo ''; - } + if ($sk_server['status'] == "up") { + /* tunnel is up */ + echo ''; + } else { + /* tunnel is down */ + echo ''; + } ?> @@ -195,15 +205,19 @@ $clients = openvpn_get_active_clients(); - +
- +endif; + +if (!empty($clients)): +?>

@@ -216,7 +230,9 @@ $clients = openvpn_get_active_clients(); - + "> @@ -233,7 +249,6 @@ $clients = openvpn_get_active_clients(); /* tunnel is down */ echo ''; } - ?> @@ -246,14 +261,16 @@ $clients = openvpn_get_active_clients(); - +