{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: BUSL-1.1 }}

{{t 'titles.workers'}}

{{#if (can 'create worker led worker' this.scope collection='workers')}} {{#if @model}} {{/if}} {{/if}} {{#if @model}} {{#let (resource-filter 'scopes.scope.workers.index' 'tags') as |filter| }} {{#if filter.allowedValues}} {{#each-in (group-by 'key' filter.allowedValues) as |key tags| }} {{/each-in}} {{/if}} {{/let}} {{#if (has-resource-filter-selections 'scopes.scope.workers.index' 'tags' ) }} {{t 'actions.clear-all-filters'}} {{/if}} <:body as |B|> {{#if (and (can 'read worker' B.data) B.data.isPki)}} {{B.data.displayName}} {{else}} {{B.data.displayName}} {{/if}} {{#if B.data.description}}

{{B.data.description}}

{{/if}}
{{#if B.data.tagCount}} {{/if}} {{B.data.active_connection_count}} {{B.data.release_version}} {{B.data.address}}
{{#if this.selectedWorker}} {{t 'resources.worker.flyout.title' workerName=this.selectedWorker.displayName }} <:body as |B|> {{this.tagDisplayName B.data}} {{#if (gt this.selectedWorker.allTags.length 10)}}
{{/if}}
{{/if}} {{else}} {{#if (can 'create worker led worker' this.scope collection='workers') }} {{/if}} {{/if}}