]> git.mxchange.org Git - friendica.git/commitdiff
show some of the worker options only when the worker process is active
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Dec 2016 20:47:37 +0000 (21:47 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Dec 2016 20:47:37 +0000 (21:47 +0100)
view/templates/admin_site.tpl

index c3e9a7237448050ad55374126d694729293905b5..531614932f640e181bee76fbb0b341710e6c05ef 100644 (file)
 
        <h3>{{$worker_title}}</h3>
        {{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}}
        <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
 
        </form>