package master_ui
import (
"html/template"
)
var StatusTpl = template.Must(template.New("status").Parse(`
Seaweed File System {{ .Version }}
Cluster status
Free |
{{ .Topology.Free }} |
Max |
{{ .Topology.Max }} |
|
{{ range .Peers }}
- {{ . }}
{{ end }}
|
System Stats
{{ range $key, $val := .Stats }}
{{ $key }} |
{{ $val }} |
{{ end }}
Topology
Data Center |
Rack |
RemoteAddr |
#Volumes |
Max |
{{ range $dc_index, $dc := .Topology.DataCenters }}
{{ range $rack_index, $rack := $dc.Racks }}
{{ range $dn_index, $dn := $rack.DataNodes }}
{{ $dc.Id }} |
{{ $rack.Id }} |
{{ $dn.Url }} |
{{ $dn.Volumes }} |
{{ $dn.Max }} |
{{ end }}
{{ end }}
{{ end }}
`))