mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-13 02:17:25 +01:00
b2aed2f16b
- Addresses issues #40 #45 #82 - Reworked Navigation Header for all roles - 'Manager' role added, can be assigned a project-id in config by admins - BREAKING! -> Added 'project' column in SQLite3 table 'user' - Manager-Assigned project will be added to all graphql filters: Only show Jobs and Users of given project - 'My Jobs' Tab for all Roles - Switched from Bool "isAdmin" to integer authLevels - Removed critical data frontend logging - Reworked repo.query.SecurityCheck()
45 lines
1.8 KiB
Cheetah
45 lines
1.8 KiB
Cheetah
{{define "content"}}
|
|
<div class="row">
|
|
<div class="col">
|
|
<h2>Clusters</h2>
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Running Jobs (short ones not listed)</th>
|
|
<th>Total Jobs</th>
|
|
<th>Short Jobs in past 24h</th>
|
|
{{if ge .User.AuthLevel 4}}
|
|
<th>System View</th>
|
|
<th>Analysis View</th>
|
|
{{end}}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{if ge .User.AuthLevel 4}}
|
|
{{range .Infos.clusters}}
|
|
<tr>
|
|
<td>{{.Name}}</td>
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}">{{.TotalJobs}} jobs</a></td>
|
|
<td>{{.RecentShortJobs}}</td>
|
|
<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>
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}&state=running">{{.RunningJobs}} jobs</a></td>
|
|
<td><a href="/monitoring/jobs/?cluster={{.Name}}">{{.TotalJobs}} jobs</a></td>
|
|
<td>{{.RecentShortJobs}}</td>
|
|
</tr>
|
|
{{end}}
|
|
{{end}}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
{{end}}
|