From 71cfe6db946cea623787896f06dbabd240f5f583 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 6 Dec 2016 21:47:37 +0100 Subject: [PATCH] show some of the worker options only when the worker process is active --- view/templates/admin_site.tpl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/view/templates/admin_site.tpl b/view/templates/admin_site.tpl index c3e9a72374..531614932f 100644 --- a/view/templates/admin_site.tpl +++ b/view/templates/admin_site.tpl @@ -158,10 +158,12 @@

{{$worker_title}}

{{include file="field_checkbox.tpl" field=$worker}} - {{include file="field_input.tpl" field=$worker_queues}} - {{include file="field_checkbox.tpl" field=$worker_dont_fork}} - {{include file="field_checkbox.tpl" field=$worker_fastlane}} - {{include file="field_checkbox.tpl" field=$worker_frontend}} + {{if $worker.2}} + {{include file="field_input.tpl" field=$worker_queues}} + {{include file="field_checkbox.tpl" field=$worker_dont_fork}} + {{include file="field_checkbox.tpl" field=$worker_fastlane}} + {{include file="field_checkbox.tpl" field=$worker_frontend}} + {{/if}}
-- 2.39.5