c3fe936e05
- added access manager api token to auth object - update account page to show pool based resource quotas - update config logic to use pool based resource quotas - minor improvements and cleanup
34 lines
1.4 KiB
Cheetah
34 lines
1.4 KiB
Cheetah
{{define "pool-resources"}}
|
|
<section class="w3-card w3-padding">
|
|
<h3>Pool: {{.PoolID}}</h3>
|
|
<p id="vmid">VMID Range: {{.AllowedVMIDRange.Min}} - {{.AllowedVMIDRange.Max}}</p>
|
|
<p id="nodes">Nodes: {{MapKeys .AllowedNodes ", "}}</p>
|
|
<p id="backups">Max Backups Per Instance: {{.AllowedBackups.MaxPerInstance}} Max Backups Total: {{.AllowedBackups.MaxTotal}}</p>
|
|
<div>
|
|
{{range $category, $v := .Resources}}
|
|
{{if eq $category ""}}
|
|
<h4>Generic</h4>
|
|
{{else}}
|
|
<h4>{{$category}}</h4>
|
|
{{end}}
|
|
<div class="resource-container">
|
|
{{range $v}}
|
|
{{if .Display}}
|
|
{{if eq .Type "numeric"}}
|
|
{{template "resource-chart" .}}
|
|
{{end}}
|
|
{{if eq .Type "storage"}}
|
|
{{template "resource-chart" .}}
|
|
{{end}}
|
|
{{if eq .Type "list"}}
|
|
{{range .Resources}}
|
|
{{template "resource-chart" .}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</div>
|
|
{{end}}
|
|
</div>
|
|
</section>
|
|
{{end}} |