From 9941c6144983e98b33c2fbf28f67dd6c30652f27 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Tue, 11 Mar 2014 08:48:34 +0100 Subject: [PATCH] [FIX] Disable monitor column on admin pool workers --- public/include/pages/admin/poolworkers.inc.php | 1 + public/templates/mpos/admin/poolworkers/default.tpl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/include/pages/admin/poolworkers.inc.php b/public/include/pages/admin/poolworkers.inc.php index 24cb675c..8d80314a 100644 --- a/public/include/pages/admin/poolworkers.inc.php +++ b/public/include/pages/admin/poolworkers.inc.php @@ -15,6 +15,7 @@ empty($_REQUEST['start']) ? $start = 0 : $start = $_REQUEST['start']; $aWorkers = $worker->getAllWorkers($iLimit, $interval, $start); +$smarty->assign('DISABLE_IDLEWORKERNOTIFICATIONS', $setting->getValue('notifications_disable_idle_worker')); $smarty->assign('LIMIT', $iLimit); $smarty->assign('WORKERS', $aWorkers); $smarty->assign('CONTENT', 'default.tpl'); diff --git a/public/templates/mpos/admin/poolworkers/default.tpl b/public/templates/mpos/admin/poolworkers/default.tpl index 8423860a..2b562980 100644 --- a/public/templates/mpos/admin/poolworkers/default.tpl +++ b/public/templates/mpos/admin/poolworkers/default.tpl @@ -25,8 +25,8 @@ Worker Name Password Active - {if $GLOBAL.config.disable_notifications != 1}Monitor{/if} Khash/s + {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1}Monitor{/if} Difficulty Avg Difficulty @@ -38,7 +38,7 @@ {$WORKERS[worker].username|escape} {$WORKERS[worker].password|escape} - {if $GLOBAL.config.disable_notifications != 1} + {if $GLOBAL.config.disable_notifications != 1 && $DISABLE_IDLEWORKERNOTIFICATIONS != 1} {/if} {$WORKERS[worker].hashrate|number_format|default:"0"}