package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ ClusterCollections(data dash.ClusterCollectionsData) {
| Collection Name | Regular Volumes | EC Volumes | Files | Size (Logical) | Disk Types | Actions | 
|---|---|---|---|---|---|---|
| {collection.Name} | 
                                                
                                                if collection.VolumeCount > 0 {
                                                    {fmt.Sprintf("%d", collection.VolumeCount)}
                                                } else {
                                                    0
                                                }
                                             | 
                                                
                                                if collection.EcVolumeCount > 0 {
                                                    {fmt.Sprintf("%d", collection.EcVolumeCount)}
                                                } else {
                                                    0
                                                }
                                             | 
                                                
                                                {fmt.Sprintf("%d", collection.FileCount)}
                                             | 
                                                
                                                {formatBytes(collection.TotalSize)}
                                             | for i, diskType := range collection.DiskTypes { if i > 0 { } {diskType} } if len(collection.DiskTypes) == 0 { Unknown } | 
No collections are currently configured in the cluster.