Add TotalAccHours to project and user lists

This commit is contained in:
Christoph Kluge 2023-06-09 12:28:24 +02:00
parent 616095fe66
commit 9f42f5b28f

View File

@ -45,6 +45,7 @@
totalJobs totalJobs
totalWalltime totalWalltime
totalCoreHours totalCoreHours
totalAccHours
} }
}`, }`,
variables: { jobFilters } variables: { jobFilters }
@ -166,6 +167,18 @@
<Icon name="sort-numeric-down" /> <Icon name="sort-numeric-down" />
</Button> </Button>
</th> </th>
<th scope="col">
Total Accelerator Hours
<Button
color={sorting.field == "totalAccHours"
? "primary"
: "light"}
size="sm"
on:click={(e) => changeSorting(e, "totalAccHours")}
>
<Icon name="sort-numeric-down" />
</Button>
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -205,6 +218,7 @@
<td>{row.totalJobs}</td> <td>{row.totalJobs}</td>
<td>{row.totalWalltime}</td> <td>{row.totalWalltime}</td>
<td>{row.totalCoreHours}</td> <td>{row.totalCoreHours}</td>
<td>{row.totalAccHours}</td>
</tr> </tr>
{:else} {:else}
<tr> <tr>