package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" ) templ ClusterEcShards(data dash.ClusterEcShardsData) {
| 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 { }} | Server if data.SortBy == "server" { if data.SortOrder == "asc" { } else { } } else { }if data.ShowDataCenterColumn { | Data Center if data.SortBy == "datacenter" { if data.SortOrder == "asc" { } else { } } else { }} if data.ShowRackColumn { | Rack if data.SortBy == "rack" { if data.SortOrder == "asc" { } else { } } else { }} | Distribution | Status | Actions | 
|---|---|---|---|---|---|---|---|
| {fmt.Sprintf("%d", shard.VolumeID)}if data.ShowCollectionColumn { | if shard.Collection != "" { {shard.Collection} } else { default }} | if data.ShowDataCenterColumn {{shard.Server} | {shard.DataCenter}} if data.ShowRackColumn { | {shard.Rack}} | @displayShardDistribution(shard, data.EcShards) | @displayVolumeStatus(shard) | 
                                
                                if !shard.IsComplete {
                                    
                                }
                             |