diff --git a/ui/admin/app/templates/scopes/scope/targets/index.hbs b/ui/admin/app/templates/scopes/scope/targets/index.hbs index 647d8d0e4..80f5abb86 100644 --- a/ui/admin/app/templates/scopes/scope/targets/index.hbs +++ b/ui/admin/app/templates/scopes/scope/targets/index.hbs @@ -32,89 +32,85 @@ {{#if @model}} - - - - {{t 'form.name.label'}} - {{t 'form.type.label'}} - {{t 'form.id.label'}} - - - - {{#each @model as |target|}} - {{#if (feature-flag 'ssh-target')}} - - - - {{#if (can 'read model' target)}} + + <:body as |B|> + {{#if (feature-flag 'ssh-target')}} + + + {{#if (can 'read model' B.data)}} + + {{B.data.displayName}} + + {{else}} + {{B.data.displayName}} + {{/if}} +

{{B.data.description}}

+
+ + {{#if B.data.type}} + + {{/if}} + + + + {{B.data.id}} + + +
+ {{else}} + {{#if B.data.isTCP}} + + + {{#if (can 'read model' B.data)}} - {{target.displayName}} + {{B.data.displayName}} {{else}} - {{target.displayName}} + {{B.data.displayName}} {{/if}} -

{{target.description}}

-
- - {{#if target.type}} +

{{B.data.description}}

+ + + {{#if B.data.type}} {{/if}} -
- + + - {{target.id}} + {{B.data.id}} - -
- {{else}} - {{#if target.isTCP}} - - - {{#if (can 'read model' target)}} - - {{target.displayName}} - - {{else}} - {{target.displayName}} - {{/if}} -

{{target.description}}

-
- - {{#if target.type}} - - {{/if}} - - - - {{target.id}} - - -
- {{/if}} + + {{/if}} - {{/each}} -
-
+ {{/if}} + + {{else}}