Chore session recordings bits and pieces (#237)
* Add the word up & down to the bytes strings * Add string duration to all the duration strings that are out of a table Co-authored-by: Zhihe Li <zhihe.li@hashicorp.com>
This commit is contained in:
1 parent
7c06d7f2d4
commit
bdc9f86394
4 files changed
+41
-10
No files matched your search
@@ -217,6 +217,9 @@ session-recording:
|
||||
title_plural: Session Recordings
|
||||
details: Session details
|
||||
related: Related
|
||||
up: '{bytes} up'
|
||||
down: '{bytes} down'
|
||||
duration: '{time} duration'
|
||||
connection:
|
||||
title: Connection
|
||||
title_index: Connection {index}
|
||||
|
||||
@@ -882,6 +882,10 @@
|
||||
|
||||
.layout-sidebar-sidebar {
|
||||
grid-area: sidebar;
|
||||
|
||||
&-details {
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+13
-4
@@ -69,7 +69,7 @@
|
||||
|
||||
<sb.Sidebar>
|
||||
{{! Channel details information }}
|
||||
<div>
|
||||
<div class='layout-sidebar-sidebar-details'>
|
||||
<h2>{{t 'resources.session-recording.channel.details'}}</h2>
|
||||
<MetadataList @orientation='vertical' as |list|>
|
||||
{{! Start time }}
|
||||
@@ -83,15 +83,24 @@
|
||||
</list.Item>
|
||||
{{! Duration }}
|
||||
<list.Item @icon='clock' @color='faint'>
|
||||
{{format-time-duration @model.channelRecording.duration}}
|
||||
{{t
|
||||
'resources.session-recording.duration'
|
||||
time=(format-time-duration @model.channelRecording.duration)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Bytes up }}
|
||||
<list.Item @icon='arrow-up' @color='success'>
|
||||
{{format-bytes-size @model.channelRecording.bytes_up}}
|
||||
{{t
|
||||
'resources.session-recording.up'
|
||||
bytes=(format-bytes-size @model.channelRecording.bytes_up)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Bytes down }}
|
||||
<list.Item @icon='arrow-down' @color='action'>
|
||||
{{format-bytes-size @model.channelRecording.bytes_down}}
|
||||
{{t
|
||||
'resources.session-recording.down'
|
||||
bytes=(format-bytes-size @model.channelRecording.bytes_down)
|
||||
}}
|
||||
</list.Item>
|
||||
</MetadataList>
|
||||
</div>
|
||||
|
||||
+21
-6
@@ -64,11 +64,17 @@
|
||||
<MetadataList as |list|>
|
||||
{{! Bytes up }}
|
||||
<list.Item @icon='arrow-up' @color='success'>
|
||||
{{format-bytes-size B.data.bytes_up}}
|
||||
{{t
|
||||
'resources.session-recording.up'
|
||||
bytes=(format-bytes-size B.data.bytes_up)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Bytes down }}
|
||||
<list.Item @icon='arrow-down' @color='action'>
|
||||
{{format-bytes-size B.data.bytes_down}}
|
||||
{{t
|
||||
'resources.session-recording.down'
|
||||
bytes=(format-bytes-size B.data.bytes_down)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Duration }}
|
||||
<list.Item @icon='clock' @color='faint'>
|
||||
@@ -100,7 +106,7 @@
|
||||
{{/each}}
|
||||
</sb.Body>
|
||||
<sb.Sidebar>
|
||||
<div>
|
||||
<div class='layout-sidebar-sidebar-details'>
|
||||
<h2>{{t 'resources.session-recording.details'}}</h2>
|
||||
|
||||
<MetadataList @orientation='vertical' as |list|>
|
||||
@@ -117,15 +123,24 @@
|
||||
</list.Item>
|
||||
{{! Duration }}
|
||||
<list.Item @icon='clock' @color='faint'>
|
||||
{{format-time-duration @model.sessionRecording.duration}}
|
||||
{{t
|
||||
'resources.session-recording.duration'
|
||||
time=(format-time-duration @model.sessionRecording.duration)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Bytes up }}
|
||||
<list.Item @icon='arrow-up' @color='success'>
|
||||
{{format-bytes-size @model.sessionRecording.bytes_up}}
|
||||
{{t
|
||||
'resources.session-recording.up'
|
||||
bytes=(format-bytes-size @model.sessionRecording.bytes_up)
|
||||
}}
|
||||
</list.Item>
|
||||
{{! Bytes down }}
|
||||
<list.Item @icon='arrow-down' @color='action'>
|
||||
{{format-bytes-size @model.sessionRecording.bytes_down}}
|
||||
{{t
|
||||
'resources.session-recording.down'
|
||||
bytes=(format-bytes-size @model.sessionRecording.bytes_down)
|
||||
}}
|
||||
</list.Item>
|
||||
</MetadataList>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user