|
|
|
@ -335,9 +335,14 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
return templ_7745c5c3_Err |
|
|
|
} |
|
|
|
var templ_7745c5c3_Var14 string |
|
|
|
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(bytesToHumanReadableUint64(data.TotalSize - data.DeletedByteCount)) |
|
|
|
templ_7745c5c3_Var14, templ_7745c5c3_Err = templ.JoinStringErrs(bytesToHumanReadableUint64(func() uint64 { |
|
|
|
if data.DeletedByteCount > data.TotalSize { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
return data.TotalSize - data.DeletedByteCount |
|
|
|
}())) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 161, Col: 111} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 166, Col: 48} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var14)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -350,7 +355,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var15 string |
|
|
|
templ_7745c5c3_Var15, templ_7745c5c3_Err = templ.JoinStringErrs(bytesToHumanReadableUint64(data.DeletedByteCount)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 169, Col: 94} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 174, Col: 94} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var15)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -368,7 +373,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var16 string |
|
|
|
templ_7745c5c3_Var16, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.DeleteCount)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 179, Col: 80} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 184, Col: 80} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var16)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -399,9 +404,14 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
return templ_7745c5c3_Err |
|
|
|
} |
|
|
|
var templ_7745c5c3_Var17 string |
|
|
|
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.FileCount-data.DeleteCount)) |
|
|
|
templ_7745c5c3_Var17, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", func() uint64 { |
|
|
|
if data.DeleteCount > data.FileCount { |
|
|
|
return 0 |
|
|
|
} |
|
|
|
return data.FileCount - data.DeleteCount |
|
|
|
}())) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 201, Col: 97} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 211, Col: 48} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var17)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -414,7 +424,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var18 string |
|
|
|
templ_7745c5c3_Var18, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.DeleteCount)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 209, Col: 80} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 219, Col: 80} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var18)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -427,7 +437,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var19 string |
|
|
|
templ_7745c5c3_Var19, templ_7745c5c3_Err = templruntime.SanitizeStyleAttributeValues("color: " + getGarbageRatioColor(data.GarbageRatio)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 220, Col: 136} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 230, Col: 136} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var19)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -440,7 +450,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var20 string |
|
|
|
templ_7745c5c3_Var20, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%.1f%%", data.GarbageRatio*100)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 221, Col: 91} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 231, Col: 91} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var20)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -468,7 +478,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var21 string |
|
|
|
templ_7745c5c3_Var21, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.DeleteCount)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 244, Col: 121} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 254, Col: 121} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var21)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -492,7 +502,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var22 string |
|
|
|
templ_7745c5c3_Var22, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", data.TotalShards)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 274, Col: 98} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 284, Col: 98} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var22)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -505,7 +515,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var23 string |
|
|
|
templ_7745c5c3_Var23, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", len(data.DataCenters))) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 280, Col: 103} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 290, Col: 103} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var23)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -518,7 +528,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var24 string |
|
|
|
templ_7745c5c3_Var24, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", len(data.Servers))) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 286, Col: 96} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 296, Col: 96} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var24)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -546,7 +556,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var25 string |
|
|
|
templ_7745c5c3_Var25, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", gen)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 300, Col: 104} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 310, Col: 104} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var25)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -564,7 +574,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var26 string |
|
|
|
templ_7745c5c3_Var26, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", gen)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 302, Col: 106} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 312, Col: 106} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var26)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -578,7 +588,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var27 string |
|
|
|
templ_7745c5c3_Var27, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d/14 shards", len(data.GenerationShards[gen]))) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 304, Col: 101} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 314, Col: 101} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var27)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -612,7 +622,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var28 string |
|
|
|
templ_7745c5c3_Var28, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%02d", shardID)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 314, Col: 118} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 324, Col: 118} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var28)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -630,7 +640,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var29 string |
|
|
|
templ_7745c5c3_Var29, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%02d", shardID)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 316, Col: 120} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 326, Col: 120} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var29)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -660,7 +670,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var30 string |
|
|
|
templ_7745c5c3_Var30, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%02d", shard.ShardID)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 327, Col: 112} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 337, Col: 112} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var30)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -688,7 +698,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var31 string |
|
|
|
templ_7745c5c3_Var31, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%02d", shardID)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 334, Col: 112} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 344, Col: 112} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var31)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -810,7 +820,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var32 string |
|
|
|
templ_7745c5c3_Var32, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%02d", shard.ShardID)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 424, Col: 110} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 434, Col: 110} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var32)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -823,7 +833,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var33 templ.SafeURL |
|
|
|
templ_7745c5c3_Var33, templ_7745c5c3_Err = templ.JoinURLErrs(templ.URL("/cluster/volume-servers/" + shard.Server)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 427, Col: 106} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 437, Col: 106} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var33)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -836,7 +846,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var34 string |
|
|
|
templ_7745c5c3_Var34, templ_7745c5c3_Err = templ.JoinStringErrs(shard.Server) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 428, Col: 81} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 438, Col: 81} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var34)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -849,7 +859,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var35 string |
|
|
|
templ_7745c5c3_Var35, templ_7745c5c3_Err = templ.JoinStringErrs(shard.DataCenter) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 432, Col: 103} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 442, Col: 103} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var35)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -862,7 +872,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var36 string |
|
|
|
templ_7745c5c3_Var36, templ_7745c5c3_Err = templ.JoinStringErrs(shard.Rack) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 435, Col: 99} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 445, Col: 99} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var36)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -880,7 +890,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var37 string |
|
|
|
templ_7745c5c3_Var37, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", shard.Generation)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 439, Col: 116} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 449, Col: 116} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var37)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -898,7 +908,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var38 string |
|
|
|
templ_7745c5c3_Var38, templ_7745c5c3_Err = templ.JoinStringErrs(fmt.Sprintf("%d", shard.Generation)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 442, Col: 118} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 452, Col: 118} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var38)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -916,7 +926,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var39 string |
|
|
|
templ_7745c5c3_Var39, templ_7745c5c3_Err = templ.JoinStringErrs(shard.DiskType) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 446, Col: 83} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 456, Col: 83} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var39)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -929,7 +939,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var40 string |
|
|
|
templ_7745c5c3_Var40, templ_7745c5c3_Err = templ.JoinStringErrs(bytesToHumanReadableUint64(shard.Size)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 449, Col: 110} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 459, Col: 110} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var40)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
@ -942,7 +952,7 @@ func EcVolumeDetails(data dash.EcVolumeDetailsData) templ.Component { |
|
|
|
var templ_7745c5c3_Var41 templ.SafeURL |
|
|
|
templ_7745c5c3_Var41, templ_7745c5c3_Err = templ.JoinURLErrs(templ.SafeURL(fmt.Sprintf("http://%s/ui/index.html", shard.Server))) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 452, Col: 121} |
|
|
|
return templ.Error{Err: templ_7745c5c3_Err, FileName: `view/app/ec_volume_details.templ`, Line: 462, Col: 121} |
|
|
|
} |
|
|
|
_, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var41)) |
|
|
|
if templ_7745c5c3_Err != nil { |
|
|
|
|