esxlib/web/templates/zone_show.html

91 lines
2.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>ESX: Dashboard</title>
{{ template "core_head" . }}
</head>
<body>
{{template "core_sidebar" . }}
{{ $zoneId := .Content.Zone.Id }}
<!-- CONTENT -->
<div id="content" data-uk-height-viewport="expand: true">
<div class="uk-container uk-container-expand">
<table class="uk-table uk-table-justify uk-table-divider">
<thead>
<tr>
<th>Machine Name</th>
<th>Zone</th>
<th>State</th>
<th>Address</th>
</tr>
</thead>
<tbody>
{{ range .Content.Machines }}
<tr>
<td><a href="/ui/machine/{{ .Id }}/">{{ .Name }}</a></td>
<td>{{ .Zone }}</td>
<td>{{ .State }}</td>
{{ range .Network }}
<td> {{ .Address }}</td>
{{end}}
</tr>
{{ end }}
</tbody>
</table>
<table class="uk-table uk-table-justify uk-table-divider">
<thead>
<tr>
<th>Network</th>
<th>VLAN</th>
</tr>
</thead>
<tbody>
{{ range .Content.Networks }}
<tr>
<td><a href="/ui/zone/{{ $zoneId }}/network/{{ .Id }}/">{{ .Name }}</a></td>
<td>{{ .VLAN }}</td>
</tr>
{{ end }}
</tbody>
</table>
<table class="uk-table uk-table-justify uk-table-divider">
<thead>
<tr>
<th>Slug Name</th>
<th>Description</th>
<th>CPU</th>
<th>Memory</th>
<th>Disk</th>
</tr>
</thead>
<tbody>
{{ range .Content.Slugs }}
<tr>
<td><a href="/ui/zone/{{ $zoneId }}/slug/{{ .Id }}/">{{ .Name }}</a></td>
<td>{{ .Description }}</td>
<td>{{ .CpuCount }}</td>
<td>{{ .MemoryMb }} MB</td>
<td>{{ .DiskGb }} GB</td>
</tr>
{{ end }}
</tbody>
</table>
{{ template "core_footer" . }}
</div>
</div>
{{template "core_tail" . }}
</body>
</html>