mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-05-14 05:01:41 +02:00
Add metric units to compareTable head, format metric subheads
This commit is contained in:
parent
f7376f6dca
commit
4399c1d590
@ -301,7 +301,7 @@
|
|||||||
<th>Cluster</th>
|
<th>Cluster</th>
|
||||||
<th colspan="3">Resources</th>
|
<th colspan="3">Resources</th>
|
||||||
{#each metrics as metric}
|
{#each metrics as metric}
|
||||||
<th colspan="3">{metric}</th>
|
<th colspan="3">{metric} {comparePlotData[metric]?.unit? `(${comparePlotData[metric]?.unit})` : ''}</th>
|
||||||
{/each}
|
{/each}
|
||||||
</tr>
|
</tr>
|
||||||
<!-- Header Row 2: Fields -->
|
<!-- Header Row 2: Fields -->
|
||||||
@ -355,7 +355,7 @@
|
|||||||
{#each metrics as metric}
|
{#each metrics as metric}
|
||||||
{#each ["min", "avg", "max"] as stat}
|
{#each ["min", "avg", "max"] as stat}
|
||||||
<th on:click={() => sortBy(metric, stat)}>
|
<th on:click={() => sortBy(metric, stat)}>
|
||||||
{stat}
|
{stat.charAt(0).toUpperCase() + stat.slice(1)}
|
||||||
<Icon
|
<Icon
|
||||||
name="caret-{compareTableSorting[metric][stat].dir}{compareTableSorting[metric][stat]
|
name="caret-{compareTableSorting[metric][stat].dir}{compareTableSorting[metric][stat]
|
||||||
.active
|
.active
|
||||||
|
Loading…
x
Reference in New Issue
Block a user