package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ ClusterVolumeServers(data dash.ClusterVolumeServersData) {

Volume Servers

Total Volume Servers
{fmt.Sprintf("%d", data.TotalVolumeServers)}
Total Volumes
{fmt.Sprintf("%d", data.TotalVolumes)}
Total Capacity
{formatBytes(data.TotalCapacity)}
Volume Servers
if len(data.VolumeServers) > 0 {
for _, host := range data.VolumeServers { }
Server ID Address Data Center Rack Volumes Capacity Usage Actions
{host.ID} {host.Address} {host.DataCenter} {host.Rack}
{fmt.Sprintf("%d/%d", host.Volumes, host.MaxVolumes)}
{formatBytes(host.DiskCapacity)}
{formatBytes(host.DiskUsage)}
} else {
No Volume Servers Found

No volume servers are currently available in the cluster.

}
Last updated: {data.LastUpdated.Format("2006-01-02 15:04:05")}
}