diff --git a/ui/admin/app/styles/app.scss b/ui/admin/app/styles/app.scss index 699de8ac18..3dd3daa5d8 100644 --- a/ui/admin/app/styles/app.scss +++ b/ui/admin/app/styles/app.scss @@ -740,7 +740,8 @@ } .auth-methods-list-table, -.workers-list-table { +.workers-list-table, +.sessions-list-table { margin-top: 1rem; } 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 a0fa8163d7..37b6978f2e 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}} diff --git a/ui/admin/app/templates/scopes/scope/sessions/index.hbs b/ui/admin/app/templates/scopes/scope/sessions/index.hbs index 604dee22e3..a12b0f71a1 100644 --- a/ui/admin/app/templates/scopes/scope/sessions/index.hbs +++ b/ui/admin/app/templates/scopes/scope/sessions/index.hbs @@ -68,76 +68,63 @@ {{#if @model}} - - - - {{t 'form.id.label'}} - {{t 'resources.user.title'}} - {{t 'resources.target.title'}} - {{t 'form.started.label'}} - {{t 'form.status.label'}} - {{t 'titles.actions'}} - - - - {{#each @model as |sessionAggregate|}} - - - + <:body as |B|> + + + + + {{B.data.session.id}} + + + + {{B.data.user.id}} + {{#if B.data.user.accountName}} +
+ + {{/if}} +
+ {{B.data.target.displayName}} + + + + + + + + {{#if (can 'cancel session' B.data.session)}} + - - {{sessionAggregate.session.id}} - -
- - {{sessionAggregate.user.id}} - {{#if sessionAggregate.user.accountName}} -
- - {{/if}} -
- {{sessionAggregate.target.displayName}} - - - - - - - - {{#if sessionAggregate.session.isAvailable}} - - {{t 'actions.cancel'}} - - {{/if}} - -
- {{/each}} -
-
+ {{/if}} + + + + {{else if (has-resource-filter-selections 'scopes.scope.sessions' 'status')