From 4550cd0965ea849eb0f1f065d6adf576e433417d Mon Sep 17 00:00:00 2001 From: Devon Anderson Date: Thu, 14 Dec 2023 14:48:10 -0500 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Migrate=20`host-cata?= =?UTF-8?q?log/host-list`=20to=20use=20`Hds`=20(#2044)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: 💡 Migrate `host-catalog/host-list` to use `Hds` Migrate `host-catalog/host-list` to use `Hds::Table` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11729 * refactor: 💡 `Hds::Text` refactor Refactored `code` and `p` tag elements to use new `HDS::Text` elements ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11729 --- .../host-catalog/hosts/index.hbs | 85 +++++++++---------- 1 file changed, 41 insertions(+), 44 deletions(-) diff --git a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs index a0fa8163d..37b6978f2 100644 --- a/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs +++ b/ui/admin/app/templates/scopes/scope/host-catalogs/host-catalog/hosts/index.hbs @@ -22,52 +22,49 @@ {{#if @model.hosts}} - - - - {{t 'form.name.label'}} - {{t 'form.type.label'}} - {{t 'form.id.label'}} - {{t 'form.address.label'}} - - - - {{#each @model.hosts as |host|}} - - - {{#if (can 'read model' host)}} - - {{host.displayName}} - - {{else}} - {{host.displayName}} - {{/if}} -

{{host.description}}

-
- - - - - + <:body as |B|> + + + {{#if (can 'read model' B.data)}} + - {{host.id}} - - - - - {{host.address}} - -
- {{/each}} -
-
+ {{B.data.displayName}} + + {{else}} + {{B.data.displayName}} + {{/if}} + {{B.data.description}} + + + + + + + {{B.data.id}} + + + + {{B.data.address}} + + + + {{else}}