From af34a668b3f3816a110357dac18dfe0f769ed0ee Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Thu, 24 Dec 2015 22:09:30 +0100 Subject: haproxy-devel, move icon usage to separate file for easy changing 'themes' / prepare for 2.3 --- config/haproxy-devel/www/haproxy_pools.php | 37 ++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 12 deletions(-) (limited to 'config/haproxy-devel/www/haproxy_pools.php') diff --git a/config/haproxy-devel/www/haproxy_pools.php b/config/haproxy-devel/www/haproxy_pools.php index d98c7f41..ca449246 100644 --- a/config/haproxy-devel/www/haproxy_pools.php +++ b/config/haproxy-devel/www/haproxy_pools.php @@ -33,7 +33,7 @@ $shortcut_section = "haproxy"; require_once("guiconfig.inc"); require_once("haproxy.inc"); require_once("pkg_haproxy_tabs.inc"); - +require_once("haproxy_gui.inc"); if (!is_array($config['installedpackages']['haproxy']['ha_pools']['item'])) { $config['installedpackages']['haproxy']['ha_pools']['item'] = array(); @@ -97,7 +97,6 @@ haproxy_css(); "> '; + if ($pool['stats_enabled']=='yes') { + echo haproxyicon("stats", gettext("stats enabled")); } $isadvset = ""; - if ($pool['advanced']) $isadvset .= "Per server pass thru\r\n"; - if ($pool['advanced_backend']) $isadvset .= "Backend pass thru\r\n"; - if ($isadvset) - echo ""; + if ($pool['advanced']) { + $isadvset .= "Per server pass thru\r\n"; + } + if ($pool['advanced_backend']) { + $isadvset .= "Backend pass thru\r\n"; + } + if ($isadvset) { + echo haproxyicon("advanced", gettext("advanced settings set") . ": {$isadvset}"); + } ?> @@ -156,9 +160,15 @@ haproxy_css(); - - - + + +
" width="17" height="17" border="0" />" width="17" height="17" border="0" />" width="17" height="17" border="0" /> + + + + + +
@@ -173,7 +183,10 @@ haproxy_css(); - +
" width="17" height="17" border="0" /> + + +
-- cgit v1.2.3 From e4e35fcdd04ad128ab5c4a69b5459504caab5915 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sat, 26 Dec 2015 19:40:50 +0100 Subject: haproxy-devel, widget updated for better refresh configuration handling + prepare 2.3 --- config/haproxy-devel/www/haproxy_pools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/haproxy-devel/www/haproxy_pools.php') diff --git a/config/haproxy-devel/www/haproxy_pools.php b/config/haproxy-devel/www/haproxy_pools.php index ca449246..ef1768db 100644 --- a/config/haproxy-devel/www/haproxy_pools.php +++ b/config/haproxy-devel/www/haproxy_pools.php @@ -58,7 +58,7 @@ if ($_POST) { if ($_GET['act'] == "del") { if (isset($a_pools[$_GET['id']])) { unset($a_pools[$_GET['id']]); - write_config(); + write_config("Services: HAProxy: Backend delete"); touch($d_haproxyconfdirty_path); } header("Location: haproxy_pools.php"); -- cgit v1.2.3