Show number of short jobs per cluster on start page

Fixes ClusterCockpit/cc-frontend#21
This commit is contained in:
Lou Knauer
2022-03-08 10:26:51 +01:00
parent 9c6d37118b
commit 8e8b205da8
3 changed files with 22 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
<th>Name</th>
<th>Running Jobs</th>
<th>Total Jobs</th>
<th>Short Jobs in past 24h</th>
<th>Jobs</th>
{{if .User.IsAdmin}}
<th>System View</th>
@@ -22,6 +23,7 @@
<td>{{.Name}}</td>
<td>{{.RunningJobs}}</td>
<td>{{.TotalJobs}}</td>
<td>{{.RecentShortJobs}}</td>
<td><a href="/monitoring/jobs/?cluster={{.Name}}">Jobs</a></td>
<td><a href="/monitoring/systems/{{.Name}}">System View</a></td>
<td><a href="/monitoring/analysis/{{.Name}}">Analysis View</a></td>
@@ -33,6 +35,7 @@
<td>{{.Name}}</td>
<td>{{.RunningJobs}}</td>
<td>{{.TotalJobs}}</td>
<td>{{.RecentShortJobs}}</td>
<td><a href="/monitoring/jobs/?cluster={{.Name}}">Jobs</a></td>
</tr>
{{end}}