package app import ( "fmt" "strings" "github.com/seaweedfs/seaweedfs/weed/admin/dash" "github.com/seaweedfs/seaweedfs/weed/storage/erasure_coding" ) templ ClusterEcVolumes(data dash.ClusterEcVolumesData) {
| Volume ID if data.SortBy == "volume_id" { if data.SortOrder == "asc" { } else { } } else { }if data.ShowCollectionColumn { | Collection if data.SortBy == "collection" { if data.SortOrder == "asc" { } else { } } else { }} | Shard Count if data.SortBy == "total_shards" { if data.SortOrder == "asc" { } else { } } else { } | Shard Size | Shard Locations | Status if data.SortBy == "completeness" { if data.SortOrder == "asc" { } else { } } else { }if data.ShowDataCenterColumn { | Data Centers} | Actions | 
|---|---|---|---|---|---|---|---|
| {fmt.Sprintf("%d", volume.VolumeID)}if data.ShowCollectionColumn { | if volume.Collection != "" { {volume.Collection} } else { default }} | {fmt.Sprintf("%d/14", volume.TotalShards)} | @displayShardSizes(volume.ShardSizes) | @displayVolumeDistribution(volume) | @displayEcVolumeStatus(volume)if data.ShowDataCenterColumn { | for i, dc := range volume.DataCenters { if i > 0 { , } {dc} }} | 
                                    
                                    if !volume.IsComplete {
                                        
                                    }
                                 |