]> 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:44:18 +0000 (21:44 +0100)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Dec 2016 20:44:18 +0000 (21:44 +0100)
view/templates/admin_site.tpl

index fc84f686059ea3acb0b9d754b69e199ec1203d16..a93e3e4a4dc5a98599b01520ac34c10a223083b6 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}}
+       {{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}}
+       {{/if}}
        <div class="submit"><input type="submit" name="page_site" value="{{$submit|escape:'html'}}" /></div>
 
        </form>