2021-12-08 15:50:03 +01:00
|
|
|
{{define "content"}}
|
2023-07-19 08:25:14 +02:00
|
|
|
{{if .Infos.message }}
|
2023-07-19 07:51:04 +02:00
|
|
|
<div class="row justify-content-center">
|
2023-07-19 08:47:42 +02:00
|
|
|
<div class="col-6">
|
|
|
|
<div class="alert alert-info p-3" role="alert">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-2">
|
|
|
|
<h2><i class="bi-info-circle-fill m-3"></i></h2>
|
|
|
|
</div>
|
|
|
|
<div class="col-10">
|
|
|
|
{{.Infos.message}}
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-19 07:51:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2021-12-08 15:50:03 +01:00
|
|
|
<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>
|
2023-06-09 09:09:41 +02:00
|
|
|
<th>Running Jobs</th>
|
2022-02-16 12:29:54 +01:00
|
|
|
<th>Total Jobs</th>
|
2023-03-06 11:44:38 +01:00
|
|
|
{{if .User.HasRole .Roles.admin}}
|
2023-06-12 14:58:33 +02:00
|
|
|
<th>Status View</th>
|
2022-02-16 12:29:54 +01:00
|
|
|
<th>System View</th>
|
|
|
|
{{end}}
|
2021-12-09 16:27:48 +01:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2023-03-06 11:44:38 +01:00
|
|
|
{{if .User.HasRole .Roles.admin}}
|
2022-02-16 12:29:54 +01:00
|
|
|
{{range .Infos.clusters}}
|
|
|
|
<tr>
|
2023-06-09 09:09:41 +02:00
|
|
|
<td>{{.ID}}</td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.ID}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.ID}}">{{.TotalJobs}} jobs</a></td>
|
2023-06-12 14:58:33 +02:00
|
|
|
<td><a href="/monitoring/status/{{.ID}}">Status View</a></td>
|
2023-06-09 09:09:41 +02:00
|
|
|
<td><a href="/monitoring/systems/{{.ID}}">System View</a></td>
|
2022-02-16 12:29:54 +01:00
|
|
|
</tr>
|
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
{{range .Infos.clusters}}
|
|
|
|
<tr>
|
2023-06-09 09:09:41 +02:00
|
|
|
<td>{{.ID}}</td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.ID}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
|
|
<td><a href="/monitoring/jobs/?cluster={{.ID}}">{{.TotalJobs}} jobs</a></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}}
|