38 lines
907 B
Handlebars
38 lines
907 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
{{page-title @model.displayName}}
|
|
|
|
<Rose::Layout::Page as |page|>
|
|
|
|
<page.header class='session-details-info'>
|
|
<Hds::IconTile @color='boundary' @icon='terminal' />
|
|
<Hds::Text::Display @tag='h1' @size='500'>
|
|
{{@model.displayName}}
|
|
</Hds::Text::Display>
|
|
<Hds::Badge
|
|
@text={{time-remaining @model.expiration_time}}
|
|
@icon='loading'
|
|
/>
|
|
</page.header>
|
|
|
|
<page.actions>
|
|
{{#if (can 'cancel session' @model)}}
|
|
<Hds::Button
|
|
data-test-session-detail-cancel-button
|
|
@text={{t 'resources.session.actions.end'}}
|
|
@icon='x'
|
|
@color='secondary'
|
|
{{on 'click' (route-action 'cancelSession' @model)}}
|
|
/>
|
|
{{/if}}
|
|
|
|
</page.actions>
|
|
|
|
<page.body class='details-screen-body'>
|
|
<Session::Tabs @model={{@model}} />
|
|
</page.body>
|
|
|
|
</Rose::Layout::Page> |