package app import ( "fmt" "github.com/seaweedfs/seaweedfs/weed/admin/dash" "github.com/seaweedfs/seaweedfs/weed/util" ) templ CollectionDetails(data dash.CollectionDetailsData) {
Volume ID if data.SortBy == "volume_id" { if data.SortOrder == "asc" { } else { } } else { } | Type if data.SortBy == "type" { if data.SortOrder == "asc" { } else { } } else { } | Logical Size / Shard Count | Files | Status | Actions |
---|---|---|---|---|---|
{fmt.Sprintf("%d", volume.Id)} | Regular | {util.BytesToHumanReadable(volume.Size)} | {fmt.Sprintf("%d", volume.FileCount)} | if volume.ReadOnly { Read Only } else { Read/Write } |
|
{fmt.Sprintf("%d", ecVolume.VolumeID)} | EC | {fmt.Sprintf("%d/14", ecVolume.TotalShards)} | - | if ecVolume.IsComplete { Complete } else { Missing {fmt.Sprintf("%d", len(ecVolume.MissingShards))} shards } |
if !ecVolume.IsComplete {
}
|