2021-12-08 15:50:03 +01:00
|
|
|
{{define "content"}}
|
|
|
|
<div class="row">
|
2022-02-15 10:03:09 +01:00
|
|
|
<div class="col">
|
2021-12-09 16:27:48 +01:00
|
|
|
<h2>Clusters</h2>
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2021-12-17 15:49:22 +01:00
|
|
|
<th>Name</th>
|
2022-03-10 16:01:09 +01:00
|
|
|
<th>Running Jobs (short ones not listed)</th>
|
2022-02-16 12:29:54 +01:00
|
|
|
<th>Total Jobs</th>
|
2022-03-08 10:26:51 +01:00
|
|
|
<th>Short Jobs in past 24h</th>
|
2023-01-27 18:36:58 +01:00
|
|
|
{{if ge .User.AuthLevel 4}}
|
2022-02-16 12:29:54 +01:00
|
|
|
<th>System View</th>
|
|
|
|
<th>Analysis View</th>
|
|
|
|
{{end}}
|
2021-12-09 16:27:48 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-01-27 18:36:58 +01:00
|
|
|
{{if ge .User.AuthLevel 4}}
|
2022-02-16 12:29:54 +01:00
|
|
|
{{range .Infos.clusters}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.Name}}</td>
|
2022-03-10 16:01:09 +01:00
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}">{{.TotalJobs}} jobs</a></td>
|
2022-03-08 10:26:51 +01:00
|
|
|
<td>{{.RecentShortJobs}}</td>
|
2022-02-16 12:29:54 +01:00
|
|
|
<td><a href="/monitoring/systems/{{.Name}}">System View</a></td>
|
|
|
|
<td><a href="/monitoring/analysis/{{.Name}}">Analysis View</a></td>
|
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{range .Infos.clusters}}
|
|
|
|
<tr>
|
|
|
|
<td>{{.Name}}</td>
|
2022-03-10 16:01:09 +01:00
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}">{{.TotalJobs}} jobs</a></td>
|
2022-03-08 10:26:51 +01:00
|
|
|
<td>{{.RecentShortJobs}}</td>
|
2022-02-16 12:29:54 +01:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
2021-12-09 16:27:48 +01:00
|
|
|
{{end}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2021-12-08 15:50:03 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|