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