From d4ea38c5790b319e9417ad468a0b46f9f560e18b Mon Sep 17 00:00:00 2001 From: Colin Fleming Date: Sun, 14 Dec 2014 22:03:37 +0000 Subject: Tidy up "widgets" XHTML Add CDATA sections to scripts Add ALT to image tags and close image tags DIV tag cannot be inside a STRONG tag, so swap them around SCRIPT cannot be part of TR tag, so place the SCRIPT inside a TD tag but hide it. --- usr/local/www/widgets/widgets/gateways.widget.php | 4 ++++ usr/local/www/widgets/widgets/interfaces.widget.php | 6 ++---- usr/local/www/widgets/widgets/ntp_status.widget.php | 10 ++++++---- usr/local/www/widgets/widgets/openvpn.widget.php | 6 ++++-- 4 files changed, 16 insertions(+), 10 deletions(-) (limited to 'usr') diff --git a/usr/local/www/widgets/widgets/gateways.widget.php b/usr/local/www/widgets/widgets/gateways.widget.php index cf42283..05760fe 100644 --- a/usr/local/www/widgets/widgets/gateways.widget.php +++ b/usr/local/www/widgets/widgets/gateways.widget.php @@ -125,9 +125,13 @@ $counter = 1; } echo "$online\n"; ?> + + diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php index bcf8704..4cdee4e 100644 --- a/usr/local/www/widgets/widgets/interfaces.widget.php +++ b/usr/local/www/widgets/widgets/interfaces.widget.php @@ -103,21 +103,19 @@ foreach ($ifdescrs as $ifdescr => $ifname): - -
+

-
+
-
@@ -483,6 +483,7 @@ function clockUpdate() diff --git a/usr/local/www/widgets/widgets/openvpn.widget.php b/usr/local/www/widgets/widgets/openvpn.widget.php index e97cd8c..64d576b 100644 --- a/usr/local/www/widgets/widgets/openvpn.widget.php +++ b/usr/local/www/widgets/widgets/openvpn.widget.php @@ -65,6 +65,7 @@ $clients = openvpn_get_active_clients();
@@ -180,7 +182,7 @@ $clients = openvpn_get_active_clients(); /* tunnel is down */ $iconfn = "interface_down"; } - echo ""; + echo ""; ?> @@ -230,7 +232,7 @@ $clients = openvpn_get_active_clients(); /* tunnel is down */ $iconfn = "interface_down"; } - echo ""; + echo ""; ?> -- cgit v1.1